Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Javascript help needed!

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 12:52 AM
Original message
Javascript help needed!
Hi!

The new navbar for White Rose works great in Safari and Firefox, but I found out the hard way that it does NOT work in IE.

Here is the new page; http://www.whiterosesociety.org/indexnew.html

What am I doing wrong?
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
Xithras Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 01:42 PM
Response to Original message
1. IE6 gets wierd with void(0) links
It's a relatively simple thing to fix though, since you don't need it anyway. Your code currently looks like this:


<a href="javascrip t:void(0)" onmouseove r="window.status=''; document.images<'i14'>.src='images/wrs_jaymarvin_down.jpg'; return true;" onmouseou t="document.images<'i14'>.src='images/wrs_jaymarvin_up.jpg'"; onClic k="window.location='Marvin.html'">


Just change it to:


<a href="javascrip t:window.location='Marvin.html'" onmouseove r="window.status=''; document.images<'i14'>.src='images/wrs_jaymarvin_down.jpg'; return true;" onmouseou t="document.images<'i14'>.src='images/wrs_jaymarvin_up.jpg'";>

(Pardon the occasional spaces, but DU blocks JS code so I had to work around it).

Of course, I have to ask why you're using Javascript for the window location change at all. If you're using the <a> tag anyway, why not simply link to Marvin.html or wherever your other pages link? By making your navigation JS dependent, you're preventing a number of browsers and practically all screen readers and assistive browsing devices from using your site.
Printer Friendly | Permalink | Reply | Top
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 08:09 PM
Response to Reply #1
2. Well, the goal is to get the neat mouseover graphics switch.
And I plan on having a NOSCRIPT and traditional links to cover that.
Printer Friendly | Permalink | Reply | Top
 
benburch Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-11-05 08:19 PM
Response to Reply #2
3. In fact, just tested that.
It all works...

I test stuff in Lynx to make sure.

Thanks!
Printer Friendly | Permalink | Reply | Top
 
alfredo Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Mar-18-05 12:47 AM
Response to Reply #3
4. Have you ever tried a version of lynx called links? I like it a
a lot better than lynx.


http://links.sourceforge.net/

Check out the screenshots
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Dec 22nd 2024, 09:05 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC