Andreas Schuth
05-31-2005, 02:07 AM
Hello Community,
I am kinda new to Java Script and I am facing an error I could not get rid of. It would be good if you guys could look the code up.
<script language="JavaScript" type="text/javascript">
<!--
if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
document.write('<img src="templates/subSilver/images/icon_hlsw.gif" alt=""/>');
else
document.write('
</td><td> </td><td valign="top" nowrap="nowrap">
<div style="position:relative"><div style="position:absolute">
<img src="templates/subSilver/images/icon_hlsw.gif" onclick="window.open('http://buddylist.hlsw.org/info.php?id=12345','_blank','width=160,height=120');" title="HLSW: 12345" border="0" alt=""/>
</div><div style="position:absolute;left:3px;top:-1px">
<img src="http://buddylist.hlsw.org/image.php?id=12345&img=1" width="14" height="14" onClick="window.open('http://buddylist.hlsw.org/info.php?id=12345','_blank','width=160,height=120');" border="0" alt=""/>
</div></div>
');
//-->
</script>
The Problem I face is that the ' and the // of the hyperlink wont work. Is there an escape character for that?
Any help is really appreciated.
Cheers,
Andreas
I am kinda new to Java Script and I am facing an error I could not get rid of. It would be good if you guys could look the code up.
<script language="JavaScript" type="text/javascript">
<!--
if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
document.write('<img src="templates/subSilver/images/icon_hlsw.gif" alt=""/>');
else
document.write('
</td><td> </td><td valign="top" nowrap="nowrap">
<div style="position:relative"><div style="position:absolute">
<img src="templates/subSilver/images/icon_hlsw.gif" onclick="window.open('http://buddylist.hlsw.org/info.php?id=12345','_blank','width=160,height=120');" title="HLSW: 12345" border="0" alt=""/>
</div><div style="position:absolute;left:3px;top:-1px">
<img src="http://buddylist.hlsw.org/image.php?id=12345&img=1" width="14" height="14" onClick="window.open('http://buddylist.hlsw.org/info.php?id=12345','_blank','width=160,height=120');" border="0" alt=""/>
</div></div>
');
//-->
</script>
The Problem I face is that the ' and the // of the hyperlink wont work. Is there an escape character for that?
Any help is really appreciated.
Cheers,
Andreas