|
hey there!
first I have to say I´m a total newbie. I hope to get some help here - I already searched the forum but I didn´t find something that matches my problem...
I´ve upped something here: http://membres.lycos.fr/bmxsteffen/indexScr2.htm
as you can see there´s some tables with different stuff.
my question is only about the scroll-script I put in "eventos". (I found it here: http://www.simplythebest.net/info/javascript59.html
well, everything works fine with the first (eventos) but I want to put the same in the section above (noticias).
so I copied in the html-head the div-styles and renamed them with a 2 at the end. but I can´t find the variables in the javascript above, where there is the definition for what happens on a roll-over of the buttons....
on the web-page the 2 "new" buttons are visible but on rollover they affect the "eventos"table. and the noticias-table is invisible - I don´t know why either....
ok - I hope you understand what I want! 
many thnx in advance!!
steffen
|
|
|
Unfortunately, the script was not designed to allow multiple scolling objects. You will have to modify the functions to allow you to pass which object to scroll. Right now, the function PerformScroll() always takes action on the single scrolling object.
Notice this function that constructs the original scrolling object. You will need to add code here to Initialize (or "construct") your second scrolling object.
function InitialiseScrollableArea(){
objContainer=new ConstructObject("divContainer");
objScroller=new ConstructObject("divContent","divContainer");
objScroller.MoveArea(0,0);
objContainer.css.visibility="visible";
initialised=true;
}
|
|
Then you'll have to modify PerformScroll() to accept a parameter specifying which object to scroll.
Then you'll have to modify the mouseover/mouseout links to pass the object as a parameter to PerformScroll().
You are almost there!
|
|
|
|
|
|
|
|
|
|