|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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> |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||
|
|||
|
RE: XHTML1.1
either that, or detect the browser type, and if it IE, sent it the name instead of the id attribute .
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > XHTML1.1 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|