Web Design and Development Forums

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 New to Web Design 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 Beginners category.


Go Back   Webforumz.com > Beginners > New to Web Design

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Mar 21st, 2008, 15:50   #1 (permalink)
New Member
 
Join Date: Mar 2008
Location: Nanaimo, BC, Canada
Posts: 2
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.
Crystal Phoenix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 21st, 2008, 18:48   #2 (permalink)
Chief Moderator
 
aso186's Avatar
 
Join Date: Oct 2007
Location: UK
Posts: 709
Blog Entries: 2
Send a message via Skype™ to aso186
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="..." />
__________________

aso186 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 21st, 2008, 19:05   #3 (permalink)
New Member
 
Join Date: Mar 2008
Location: Nanaimo, BC, Canada
Posts: 2
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?
Crystal Phoenix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 21st, 2008, 19:28   #4 (permalink)
Chief Moderator
 
aso186's Avatar
 
Join Date: Oct 2007
Location: UK
Posts: 709
Blog Entries: 2
Send a message via Skype™ to aso186
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!
__________________

aso186 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 24th, 2008, 19:40   #5 (permalink)
Chief Moderator
 
aso186's Avatar
 
Join Date: Oct 2007
Location: UK
Posts: 709
Blog Entries: 2
Send a message via Skype™ to aso186
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!
__________________

aso186 is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
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

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 HTML Forum 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 CSS Forum 2 Feb 16th, 2006 09:38
My javascript won't work outside of IE. HELP! courtjester JavaScript Forum 9 Nov 22nd, 2003 00:44



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 13:30.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59