Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

X-POST: DTD and DHTML problems

 
   Web Hosting Problem Solving Community! (Home) -> Webmaster RSS
Next:  Dynamic menu help  
Author Message
infonospam

External


Since: Jun 27, 2003
Posts: 7



(Msg. 1) Posted: Tue Jul 08, 2003 7:53 pm
Post subject: X-POST: DTD and DHTML problems
Archived from groups: uk>net>web>authoring, others (more info?)

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

 >> Stay informed about: X-POST: DTD and DHTML problems 
Back to top
Login to vote
postmaster

External


Since: Jun 27, 2003
Posts: 286



(Msg. 2) Posted: Tue Jul 08, 2003 10:25 pm
Post subject: Re: X-POST: DTD and DHTML problems [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

CCT wrote:

[snip]


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

Note that JavaScript can be disabled. What happens then? If you want
different CSS for browsers read:

<a style='text-decoration: underline;' href="http://www.phespirit.info/cafe/css_hacks.htm" target="_blank">http://www.phespirit.info/cafe/css_hacks.htm</a>

(and weep Smile

John

--
email: mail(at)johnbokma.com (or reply) home: <a style='text-decoration: underline;' href="http://johnbokma.com/" target="_blank">http://johnbokma.com/</a>
website design tips: <a style='text-decoration: underline;' href="http://johnbokma.com/websitedesign/" target="_blank">http://johnbokma.com/websitedesign/</a> (preliminary)<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: X-POST: DTD and DHTML problems 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]