This Forum Has Been Archived
*Click Here To Visit The NEW Forum*

 

 


if url = this then thiss script... code needed

Designing your own website? Need help? Ask your questions and share your favorite resources here... Tables, Forms, Color Scheme & Layout, Scripts, Programs & Resources

Moderators: angienewton, tknoppe, terrapin719, lisamariemary

if url = this then thiss script... code needed

Postby saurabhjain » Sun Jan 13, 2008 10:01 am

Hello all


there is website which can be reached with two urls..

1 http://saurabhjain.in/medais/forum/
2 http://medais.net/forum/


infact medais.net is pointed to saurabhjain.in/medais/

there is a code of google adsense and i want to adsense only to be shown when it is broused using url medais.net

so i m looking for code which checks in the url , if medais.net matches then adsense code...

other wise nothing.....


i am c cc++ programer but not in html and all

plz write a code for me....
<script>
if (self.location.href.match("medais.net")){
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
}
</script>

something like that can work for me.... plz help.....

Regards
Saurabh jain
User avatar
saurabhjain
 
Posts: 23
Joined: Fri Feb 17, 2006 1:50 pm
Location: Pink city jaipur

Return to HTML, Web Design & Programming

Who is online

Users browsing this forum: No registered users and 5 guests

cron