Results 1 to 3 of 3

Thread: Anyone have any advice?

  1. #1
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Anyone have any advice?

    Hello.. Just registered with Dynamic Drive- Great Stuff!

    Wondering if anyone can assist me achieve this scrolling effect used in these two sites... It is a box that contains content that follows the mouse scroll.

    Example of what i am looking to do-
    http://www.rovion.com/
    I have completed the Flash Video now i just need to implement the code to make it float.


    this link contains a floating "rate this article box"
    http://www.amazines.com/article_deta...%2Cinvitations

    Side note - if there was away to make the content "time out" after the flash plays that would be fantabulous!

    Thanks in advance-

  2. #2
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    This is very easy. THere are many examples on DD that you can modify to your needs

    For example
    http://www.dynamicdrive.com/dynamici...staticmenu.htm

    Just put the content within the <div> tag.

    If that doesn't suit you, try searching the web for 'floating div' and modifying that.

    Time outs will be easy too.

    Just set a function to occur after a certain amount of time.

    Code:
    <div id="my_div"></div>
    <script>
    var element_id = "my_div" ;												//name of div 
    var time = 3; 															//time in seconds until display
    setTimeout(function(){document.getElementById(element_id).style.display = 'none'},time*1000)
    </script>

  3. #3
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks

    Thanks for the Help! This place Rocks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •