...

View Full Version : URL in javascript



fromhell
08-14-2008, 03:30 AM
sorry for disturbing you guys again..
i need help because i'm a newbie in javascript.
can someone help to write this asp code into javascript



<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" bgcolor="#000000"><div class="strip">
<div align="center">document.write(visitText)&nbsp;:&nbsp;<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strRadioID%>&url=<%=strRadioURL%>" target="_blank" class="strip"><%=strRadioTxt%></a>&nbsp;|&nbsp;<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strAstroID%>&url=http://www.astro.com.my" target="_blank" class="strip"><%=strAstroTxt%></a>&nbsp;|&nbsp;<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strMobileID%>&url=http://www.astromobile.com.my" target="_blank" class="strip"><%=strMobileTxt%></a>&nbsp;|&nbsp;<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strVideoID%>&url=http://video.astro.com.my" target="_blank" class="strip"><%=strVideoTxt%></a>&nbsp;|&nbsp;<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strEntertainmentID%>&url=http://www.murai.com.my" target="_blank" class="strip"><%=strEntertainmentTxt%></a></div>
</div></td>
</tr>
</table>

all var like strRadio or else has been wrote

SSJ
08-14-2008, 01:55 PM
All seems fine but just 1 minor change:

Try Following:

<div align="center">
<&#37;=visitText%>
&nbsp;:&nbsp;
<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strRadioID%>&url=<%=strRadioURL%>" target="_blank" class="strip"><%=strRadioTxt%></a>&nbsp;|&nbsp;
<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strAstroID%>&url=http://www.astro.com.my" target="_blank" class="strip"><%=strAstroTxt%></a>&nbsp;|&nbsp;
<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strMobileID%>&url=http://www.astromobile.com.my" target="_blank" class="strip"><%=strMobileTxt%></a>&nbsp;|&nbsp;
<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strVideoID%>&url=http://video.astro.com.my" target="_blank" class="strip"><%=strVideoTxt%></a>&nbsp;|&nbsp;
<a href="http://ads.ampradio.net/cgi-bin/ad_click.asp?promo=<%=strEntertainmentID%>&url=http://www.murai.com.my" target="_blank" class="strip"><%=strEntertainmentTxt%></a>
</div>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum