View Full Version : adding onMouseover pause to IFrame ticker
mailtosaleh
02-27-2007, 08:33 PM
1) Script Title:
<IFRAME> ticker
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex2/iframe-ticker.htm
3) Describe problem:
How to add onMouseover pause to this script
jscheuer1
02-27-2007, 09:45 PM
On exfile.htm - add the red parts:
function rotate_content(){
if(window.pause){
setTimeout("rotate_content()",300);
return;
}
get_total()
contract_all()
expand_one(curindex)
curindex=(curindex<totalcontent-1)? curindex+1: 0
setTimeout("rotate_content()",delay)
}
window.onload=rotate_content
</script>
<BODY bgColor=#FFFFE1 onmouseover="window.pause=1;" onmouseout="window.pause=0;">
mailtosaleh
02-27-2007, 10:32 PM
It is working great, Thanks
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.