Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    URL in javascript

    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

  • #2
    SSJ
    SSJ is offline
    Regular Coder
    Join Date
    Mar 2007
    Posts
    230
    Thanks
    0
    Thanked 4 Times in 4 Posts
    All seems fine but just 1 minor change:

    Try Following:
    PHP Code:
    <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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •