HighDots Forums  

X-POST: DTD and DHTML problems

alt.html.dhtml alt.html.dhtml


Discuss X-POST: DTD and DHTML problems in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
CCT
 
Posts: n/a

Default X-POST: DTD and DHTML problems - 07-08-2003 , 09:53 AM






Hi everyone. I am back here with yet another problem on my homepage at
http://www.tecnolingueitalia.com/index.html

I am using the following "ready-made" javascript to render the homepage
"dynamic":

<!-- BEGIN SCRIPT FOR DYNAMIC BUTTONS
function setVariables(){
y=-50;x=10;ob=1;max=110 // x is the number of buttons
if (navigator.appName == "Netscape") v=".top=",dS="document.",sD="";
else v=".pixelTop=",dS="",sD=".style";
}
function scrollOn(){
if (ob<10){ // the var x+1 gives the ob
objectX="object"+ob;y+=10;eval(dS + objectX + sD + v + y);
if (y<max) setTimeout ("scrollOn()",5)
else y=-50, max+=40, ob+=1, setTimeout("scrollOn()",5)
}
}
//-->

Now the problems:

1) If I put a DTD the above javascript for the "falling buttons" stops
working *also* in IE, i.e. I get the same effect that this script has on NN7
(see
following point);

2) The same script does not work in NN 7: the buttons remain hidden in their
position at -50px, but they don't fall down and position themselves where
defined by the css.

Does anyone know why problem 1) should happen (!!) and if there is a way to
solve problem 2), given the script above?

Thank you in advance for any help!

Cristina

--
www.arabnity.com



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.