|
|
 |
March 21st, 2008, 12:50 PM
|
#1
|
|
New Member
Join Date: Mar 2008
Location: Nanaimo, BC, Canada
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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.
|
|
|
March 21st, 2008, 03:48 PM
|
#2
|
|
Most Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 1,633
Thanks: 22
Thanked 84 Times in 79 Posts
Rep Altering Power: 0
|
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:
<img src="cow.jpg" alt="A Cow" width="..." height="..." />
|
|
|
March 21st, 2008, 04:05 PM
|
#3
|
|
New Member
Join Date: Mar 2008
Location: Nanaimo, BC, Canada
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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?
|
|
|
March 21st, 2008, 04:28 PM
|
#4
|
|
Most Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 1,633
Thanks: 22
Thanked 84 Times in 79 Posts
Rep Altering Power: 0
|
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!
|
|
|
March 24th, 2008, 04:40 PM
|
#5
|
|
Most Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 1,633
Thanks: 22
Thanked 84 Times in 79 Posts
Rep Altering Power: 0
|
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:
<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!
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|