Log in

View Full Version : Anyone have any advice?



diamondkilo
05-03-2007, 01:24 PM
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_detail.cfm/225161?articleid=225161&title=wedding%2Cinvitations

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

Thanks in advance-

Bob90
05-04-2007, 09:41 AM
This is very easy. THere are many examples on DD that you can modify to your needs

For example
http://www.dynamicdrive.com/dynamicindex1/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.



<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>

diamondkilo
05-04-2007, 11:53 AM
Thanks for the Help! This place Rocks! :)