My page here has advertisers' URLs listed in full, but I'm not sure how to remove the http:// prefix.
Here's the Code:
<% if instr("abc"&rsAdvert("WebAddress"),"http:")>0 then
shttp=""
else
shttp="http://"
%>
<li class="weblink">
| <a onclick="pageTracker._trackPageview('/TOP_FULL_ADVERT_WEBSITE/<%=shttp%><%=rsAdvert("WebAddress")%>');"
href='<%=shttp%><%=rsAdvert("WebAddress")%>'
target='_blank' rel='nofollow'>
<%=rsAdvert("WebAddress")%></a></li>
<% end if %>
Any ideas would be great.
Have you tried
You need to change this bit of your code:
You link looks like this:
so you need to chnage the bit just before the
</a>
, specifically this bit at the endto some variable which does not include the http://
this might work, not sure of classic asp syntax