Javascript menu - does not work on title page, but does work on other pages

This is a discussion on "Javascript menu - does not work on title page, but does work on other pages" within the Starting Out section. This forum, and the thread "Javascript menu - does not work on title page, but does work on other pages are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 21st, 2008, 15:50
New Member
Join Date: Mar 2008
Location: Nanaimo, BC, Canada
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Javascript menu - does not work on title page, but does work on other pages

www.bookfest.ca
I designed this site & it worked with no problems, until I tried to mess with the pages "fading" in & out. Now, on the title page, the drop down menu from the "presenters" button on the menu does not work. It does work on all the other pages in the site. I have examined the code line by line, and it seems identical to me. Any help would be appreciated.
Also, when I validate the html, it gives me error messages about missing ALT tags - I don't know how to fix this.
Reply With Quote

  #2 (permalink)  
Old Mar 21st, 2008, 18:48
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,039
Blog Entries: 2
Thanks: 5
Thanked 26 Times in 23 Posts
Re: Javascript menu - does not work on title page, but does work on other pages

I can see the problem you're having, but can't find the issue. That's some seriously messy WYSIWYG code in there!

alt tags are required for accessible markup, used to describe images for those that have them disabled, or are unable to see them. For example;
Code: Select all
<img src="cow.jpg" alt="A Cow" width="..." height="..." />
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #3 (permalink)  
Old Mar 21st, 2008, 19:05
New Member
Join Date: Mar 2008
Location: Nanaimo, BC, Canada
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript menu - does not work on title page, but does work on other pages

Hmmm - thanks.
I corrected the "alts" - there were some graphics I didn't think needed alt tags but have now put them on - it now reads clear on the html validator.
Don't know how to go about cleaning up the WYSIWYG - I have (up 'til now) used mainly design view in Dreamweaver, using "code" to fix errors I couldn't find otherwise, but I'm unsure what I can "clean up" and what I shouldn't - might be why my page "messed up" in the first place. Any suggestions?
Reply With Quote
  #4 (permalink)  
Old Mar 21st, 2008, 19:28
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,039
Blog Entries: 2
Thanks: 5
Thanked 26 Times in 23 Posts
Re: Javascript menu - does not work on title page, but does work on other pages

Errm .. don't use design view!

Sorry, but the best way to have control over your code, is write your code.

Plus table layouts are considered an old fashioned technique. It might be worth checking out CSS layouts, as these make far neater code, better control and lighter, semantic markup

Head over to the CSS forum, or read up at W3Schools and Sitepoint.

Sorry, but I really can't find the root of this menu issue!
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #5 (permalink)  
Old Mar 24th, 2008, 19:40
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,039
Blog Entries: 2
Thanks: 5
Thanked 26 Times in 23 Posts
Re: Javascript menu - does not work on title page, but does work on other pages

Ok, I had a think, and this is the best I can come up with.

Put all your Javascript in an external .js file, then link to it in your HTML in the <head> like so:
Code: Select all
<script type="text/javascript" src="http://www.bookfest.ca/path/to/script.js"></script>
That way, every page is using the exact same javascript, and it'll be easier to deduce the problem (if it still exists).

Plus, you'll get neater lighter markup and it'll be easier to mod your Javascript in the future!
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Pages Dont Work In I.E ???? Can Anyone Help I Look On Web Page Design 14 Sep 30th, 2007 15:33
Javascript Navigation Will Not Work With Firefox cpando1974 JavaScript Forum 2 Apr 1st, 2007 14:56
Horizontal PopUp Menu (as z-index) on Flash does not work blanktruth Web Page Design 2 Feb 16th, 2006 09:38
My javascript won't work outside of IE. HELP! courtjester JavaScript Forum 9 Nov 22nd, 2003 00:44


All times are GMT. The time now is 12:49.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43