PDA

View Full Version : Billboard Script pause on hover



vvv7000
03-07-2007, 05:22 AM
1) Script Title: DHTML Billboard Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/dhtmlbillboard.htm

3) Describe problem: Just wondering if there's a way to get this to pause on hover.

jscheuer1
03-07-2007, 05:56 AM
Add the red parts as shown in the script here:


function expandboard(){
if(expandboard.pause){
setTimeout("expandboard()",300);
return;
}
var selectedDivObj=document.getElementById("billboard"+selectedDiv)
contractboard()
if (selectedDivObj.filt . . .

And, in the markup here:


<div id="contentwrapper" onmouseover="expandboard.pause=1;" onmouseout="expandboard.pause=0;">