Need Help.. Want to show a div in the top bar.

3 replies
Hey guys, i need help. i am making a new website related to travel. I want to show a div with the booking form of 728*90 (width*height) on the top bar. But the div shows only when user scrolls down. I dont know how to do this. Please Help me.

Thanx for help in advance
#bar #div #show #top
  • Profile picture of the author Bruce Hearder
    I think the best way to handle this would be to use some jQuery, grabbing the HTML of the form (assuming its on the same page) and positioning it in the div..

    So something like : (Note very rough code, not tested.. You are warned )

    $(document).ready(function()
    {
    $(window).scroll(function()
    {
    var frm = $("#your_hidden_div_form"');
    $("#your_top_div_id").html(frm);
    });
    });

    I hope this helps

    Bruce
    {{ DiscussionBoard.errors[7792987].message }}
  • Profile picture of the author Andrew H
    @Bruce Hearder -> why would he need to use jQuery for this?

    @dinesh900 -> what you are asking for makes no sense without us being able to see your code.
    Signature
    "You shouldn't come here and set yourself up as the resident wizard of oz."
    {{ DiscussionBoard.errors[7794555].message }}
  • Profile picture of the author mariya20
    you can find the simple to do it by using CSS and html, try this :

    How to create a toolbar - HTML Forums - Free Webmaster Forums and Help Forums

    Goodluck
    {{ DiscussionBoard.errors[7794567].message }}

Trending Topics