codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  scrolling-script but for more "scrolls"  bmxsteffen at 16:31 on Friday, September 05, 2003
 

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

  Re: scrolling-script but for more  Troy Wolf at 20:50 on Friday, September 05, 2003
 

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!
Troy Wolf: site expert
Shiny Solutions









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: JavaSript Problem In Mac Safari Browser
•  Re: DHTML div positionning Problem
•  Convert script to NS6 compatible - Please Help!
•  Print .doc file from the website using System.Diagnostics.Process
•  Re: Fullscreen code
•  Re: iframe targeting
•  Excel n ASP
•  Remote Cart Shopping Cart
•  Mouse click coordinates on an ActiveX control?


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005