JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 19th, 2000, 11:34 PM
Sue Sue is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 10 Sue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have adapted a javacript drop down on mouseover menu (it was one of those free codes) and have a couple of problems with it. I was wondering if anyone could take a look and see if they can see what's wrong. First to forewarn - I'm not proficient in scripts so it would have to be in "javascript for dummies" language!

Here's the URL http://www.teampenning.net/index.html

First in IE - when the page first loads, if you move the mouse before the page is finished loading, there is a javascript error that says "document.all.box is not an object". If you don't move the mouse at all the page loads with no errors. Either way, the script still works.

Second in NN - The page usually loads with the top menu not showing at all, although it will appear if the mouse in run over it. THEN, the page does not always load completely, and the scroll bar is sometimes missing. Hitting reload a couple of times will sometimes correct the problem, sometimes not.

Any help would be really appreciated! I like the menu, and hope I don't have to just get rid of it. Thanks in advance for any ideas.

Reply With Quote
  #2  
Old May 21st, 2000, 07:23 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 757 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 18 m 32 sec
Reputation Power: 14
My Version of NS (4.06) has no problems with your page menu although it does report an error in your hitbox code , which appears before the <!-- Menu Bar Item 0 -->1/3/4/etc - View source in NS and the bad bit will flash at you.

In Explorer your error occurs as you are trying to access DIVs that have not yet been written (assuming you mouseover a link immediately upon entering the page).

There are a couple of solutions the easiest being to move the <!-- Menu Bar Item 0 -->2/3/ etc to the top of your code ie:the first bit after the <body...> statement,
ensuring that the divs are created before the 'onmouseovers' that generate the flips.

I think that for your page that this would be sufficient , other options include hiding the whole page with another <div> and trigger its visibility at the end of an image preloading script, or even by document.writing(... the divs.

But try just moving the divs first - this should accommodate all but the fastest dash with the mouse, I cant say for sure if NS will be happy with this 'cos NS is a bit cranky - but it will only take a couple of minutes to test it.

Regards,
Simon

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
  #3  
Old May 21st, 2000, 04:39 PM
Sue Sue is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 10 Sue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you for the response. I'll try these suggestions. The one thing I can't figure out though - when I view source in Netscape (4.7), I don't see anything flashing out at me in the hit box code, actually no flashing at all. Could you point me in the direction of the bad code? Thanks again!

[This message has been edited by Sue (edited May 21, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Javascript problems

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap