...

View Full Version : help! i need to hide links till the vistor click on the adv.



wessamnz
12-11-2009, 05:48 AM
hello guys

im new in creating sites and i dont know anything about javascript so i creat a web page in frontpage 2003

wt i want to make there is..
the page is a downloading page.
so i want the vistor of this page to click the adv. first, then the download link will apear, only if he/she click on the adv.

here is the code of the page


<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Welcome to my site Download page</title>
</head>

<body>

<p align="center">&quot;Site logo&quot;</p>
<p align="center">Welcome to my site Download pages</p>
<p align="center">To be able to view the download link you have to open the
following advertisement first.</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;<!-- Begin: AdBrite, Generated: 2009-12-10 23:02:17 -->
<script type="text/javascript">
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'CCCCCC';
var AdBrite_URL_Color = '008000';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeUR IComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1435752&zs=3732385f3930&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1435752&afsid=1">
<img src="adbrite-your-ad-here-leaderboard.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
<!-- End: AdBrite --></p><hr>
<p align="center">&nbsp;</p>
<p align="center">Thank you</p>
<p align="center">
<a href="http://pearl.plunder.com/x/$kE_C_2YS2UAKXpp9SYAs5VA2mKS3AqHD/0fa75b6711/?/FarmVilleClicker.exe">
Click here to download the file.</a></p>

</body>

</html>


so this page is linked to my blog and the downloading webpage
im sorry for my bad english


any ideas.. ill be so thankful

Philip M
12-11-2009, 08:19 AM
Do please read the posting guidelines regarding silly thread titles. The thread title is supposed to help people who have a similar problem in future. Yours is useless for this purpose. You can (and should) edit it to make it more meaningful.

wessamnz
12-12-2009, 07:03 AM
forgive me i just hve a very bad english i cant even descibe wt i want
so plz help me

Philip M
12-12-2009, 09:02 AM
You can only do this by setting a session cookie. I could not test this properly as your Adbrite page crashes my browser for some reason.


<body onload = "showLink()">
// The link will be shown only if the cookie is set





//......................................
<img src="adbrite-your-ad-here-leaderboard.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" onclick = 'document.cookie = "mycookie = yes"'; ></a></span>
<!-- End: AdBrite --></p><hr>
<p align="center">&nbsp;</p>
<p align="center">Thank you</p>

<div id = "a" style="display:none">
<p align="center">
<a href="http://pearl.plunder.com/x/$kE_C_2YS2UAKXpp9SYAs5VA2mKS3AqHD/0fa75b6711/?/FarmVilleClicker.exe">
Click here to download the file.</a></p>
</div>

<script type = "text/javascript">
function showLink() {
if (document.cookie.indexOf("mycookie") >= 0 ) { // if cookie exists
document.getElementById("a").style.display="block";
}
}
</script>


I expect you realise that people very much dislike being forced on click on ads. There are some reports which suggest that Adbrite ads include spyware or malware.

Quizmaster: Which European country's name was literally intended to mean "The Way North"?
Contestant: France.

wessamnz
12-12-2009, 02:22 PM
thank you mr philip for replying
but i have here a problem
wen i click inside the Adv. it go direct to the Adv web page in the same window so my page is disapeared
i tried to press backward button, and the link apeared
wt i want is wen the vistor click inside the adv. frame, new window apear for the adv and my download link apeared in the same window not in the new one
another thing plz give me the full code coz as i told u im still .1% in html codes
that wt i made as i understood from u


<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Welcome to my site Download page</title>
</head>

<body onload = "showLink()">

<p align="center">&quot;Site logo&quot;</p>
<p align="center">Welcome to my site Download pages</p>
<p align="center">To be able to view the download link you have to open the
following advertisement first.</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;<!-- Begin: AdBrite, Generated: 2009-12-10 23:02:17 -->
<script type="text/javascript">
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'CCCCCC';
var AdBrite_URL_Color = '008000';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeUR IComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1435752&zs=3732385f3930&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1435752&afsid=1">
<img src="adbrite-your-ad-here-leaderboard.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" onclick = 'document.cookie = "mycookie = yes"'; ></a></span>
<!-- End: AdBrite --></p><hr>
<p align="center">&nbsp;</p>
<p align="center">Thank you</p>

<div id = "a" style="display:none">
<p align="center">
<a href="http://pearl.plunder.com/x/$kE_C_2YS2UAKXpp9SYAs5VA2mKS3AqHD/0fa75b6711/?/FarmVilleClicker.exe">
Click here to download the file.</a></p>
</div>

<script type = "text/javascript">
function showLink() {
if (document.cookie.indexOf("mycookie") >= 0 ) { // if cookie exists
document.getElementById("a").style.display="block";
}
}
</script></body>

</html>


i dont know if it right or wrong, so plz help


u also said people dislike that
i know but u know also as an owner of a v big forums how much u work hard to succeed. me also work hard to got a full version program and i think i make a good work

so i want to earn some money from that coz i work alone and this work take arround 10 hours daily
and i not earn from the vistor i ean from a company ill send u my forum adress in privat coz i think its not allowed to put here.

u can check it and tell me ur openian
anyway
thank u so much for giving time to help me
ill wait for ur ideas about this problem
thank u again

Philip M
12-12-2009, 05:23 PM
To open a link in a new window, change <a target="_top" to a< target="_blank" in the anchor tag.
As I say, your Adbrite crashes my browser so I am not able to test it for you.

If your English is poor, you will make it even harder to communicate if you write in text-speak.

wessamnz
12-13-2009, 05:19 AM
thank u again philip for replying
i made it blank here is the code


</script>
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1435752&zs=3732385f3930&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<a target="_blank" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1435752&afsid=1">
<img src="adbrite-your-ad-here-leaderboard.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
<!-- End: AdBrite --></p><hr>


but nothing happend

also i used adbrite coz i dont know any another company
ill Be grateful if u recomended some adv sites for me excpet google ad
thank u again

Philip M
12-13-2009, 10:07 AM
Well, if that did not work I am right out of ideas. There may be something in the Adbrite code which over-writes the local script.

Once more, I expect you realise that people very much dislike being forced on click on ads. There are some reports which suggest that Adbrite ads possibly include spyware or malware.

wessamnz
12-13-2009, 12:02 PM
thank you anyway for ur help phlip
ill search for ideas through the internet
if i find one ill post it here to everyone.
see you



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum