2cwd
01-27-2003, 06:54 PM
javascript 1 of 2
.........................
<STYLE type="text/css">
<!--
#advert {position: absolute; top: -60; left: 0}
-->
</STYLE>
<SCRIPT language="JavaScript" type="text/javascript">
<!--
// Please keep this header if you want to use the script.
// Developed by 2NetZone 666 http://2netzone.com/
var speed=1
var pix=5
var position=-60
// Change the value=-60 when you add more banner ads or when you change the height of the banner. Example: height of banner is 60 pixels, position is -60
// the value must equal to the value of top: in the style sheets.
// You can only add the value in increment of 5 pixels, if not, the script ain't work.
if(document.all){
var Ads="advert.style.pixelTop"
}
else if(document.layers)
var Ads="document.layers.advert.top"
function showAd(){
if (eval(Ads+'==position')){
movedown();
}
else if(eval(Ads+'==0')){
moveup();
}
}
function moveup(){
if(eval(Ads+'!=position')){
eval(Ads+'-=5')
setTimeout("moveup()",speed)
}
}
function movedown(){
if(eval(Ads+'!=0')){
eval(Ads+'+=5')
setTimeout("movedown()",speed)
}
}
// -->
</SCRIPT>
javascript 2 of 2
.....................................
<DIV id="advert">
<A href="http://you link.com/"><IMG src="http://www.you link.com/banner.jpg" width="468" height="60" border="0" alt="sample banner"></A><BR>
<!-- you may add more banners or text here but remember to change the position in the top script -->
<A href="javascript:showAd()" onmouseover="showAd()"><IMG src="http://www.you link.com/you button.gif" width="110" height="25" border="0" alt="Free whatever"></A>
</DIV>
<!-- You, of course, have to change the url and the images -->
.........................
<STYLE type="text/css">
<!--
#advert {position: absolute; top: -60; left: 0}
-->
</STYLE>
<SCRIPT language="JavaScript" type="text/javascript">
<!--
// Please keep this header if you want to use the script.
// Developed by 2NetZone 666 http://2netzone.com/
var speed=1
var pix=5
var position=-60
// Change the value=-60 when you add more banner ads or when you change the height of the banner. Example: height of banner is 60 pixels, position is -60
// the value must equal to the value of top: in the style sheets.
// You can only add the value in increment of 5 pixels, if not, the script ain't work.
if(document.all){
var Ads="advert.style.pixelTop"
}
else if(document.layers)
var Ads="document.layers.advert.top"
function showAd(){
if (eval(Ads+'==position')){
movedown();
}
else if(eval(Ads+'==0')){
moveup();
}
}
function moveup(){
if(eval(Ads+'!=position')){
eval(Ads+'-=5')
setTimeout("moveup()",speed)
}
}
function movedown(){
if(eval(Ads+'!=0')){
eval(Ads+'+=5')
setTimeout("movedown()",speed)
}
}
// -->
</SCRIPT>
javascript 2 of 2
.....................................
<DIV id="advert">
<A href="http://you link.com/"><IMG src="http://www.you link.com/banner.jpg" width="468" height="60" border="0" alt="sample banner"></A><BR>
<!-- you may add more banners or text here but remember to change the position in the top script -->
<A href="javascript:showAd()" onmouseover="showAd()"><IMG src="http://www.you link.com/you button.gif" width="110" height="25" border="0" alt="Free whatever"></A>
</DIV>
<!-- You, of course, have to change the url and the images -->