Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 11th, 2004, 06:35 PM
dso dso is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 dso User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
XHTML1.1

In XHTML1.1 the name tag was replaced by the id tag. But in IE this code doesnt work due to the id tag. any ideas?

<script language="javascript"><!--
image1 = new Image();
image1.src = "images/menuItem001.gif";
image2 = new Image();
image2.src = "images/menuItem002.gif";
image3 = new Image();
image3.src = "images/menuItem003.gif";
image4 = new Image();
image4.src = "images/menuItem004.gif";
image5 = new Image();
image5.src = "images/menuItem005.gif";
image6 = new Image();
image6.src = "images/menuItem006.gif";
image7 = new Image();
image7.src = "images/menuItem007.gif";
//-->
</script>
</head>
<body>
<table>
<tr><td class="menuItemsCell"><a href="index.php?cat=headlines" onmouseover="image1.src='images/menuItem001.gif';" onmouseout="image1.src='images/menuItem01.gif';"><img id="image1" src="images/menuItem01.gif" alt="Headlines" class="menuItems" /></a></td></tr>
...</table>

Reply With Quote
  #2  
Old January 11th, 2004, 10:03 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: XHTML1.1

I think the safest thing to do is to use both id and name tags, just make sure they are the same value for each.

Reply With Quote
  #3  
Old January 11th, 2004, 10:25 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: XHTML1.1

either that, or detect the browser type, and if it IE, sent it the name instead of the id attribute .

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > XHTML1.1


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway