Jump to content

Recommended Posts

Posted

I modify a script very much xD

 

<SCRIPT LANGUAGE="JavaScript">

Banner_imganz=3; Here you adjust who many pic you want to show

var Banner_sctr=10; Here the sec per pic

var Banner_halt=10; Here the sec per pic

var Banner_rand=10; Here the sec per pic

var Banner_timeout=2000;

 

var Banner_isn=new Array();

if (document.images) {

for (i=0;i<Banner_imganz;i++) Banner_isn=new Image();

Banner_isn[0].src="ΙΜΑGE No0";

Banner_isn[1].src="ΙΜΑGE No1";

Banner_isn[2].src="ΙΜΑGE No2";

} else {

Banner_isn[0]="_blank";

Banner_isn[1]="_blank";

}

var Banner_durl=new Array();

Banner_durl[0]="LINK FOR IMAGE No0";

Banner_durl[1]="LINK FOR IMAGE No1";

Banner_durl[2]="LINK FOR IMAGE No2";

function Banner_rotate(){

if (Banner_halt!=1){

if (Banner_rand==0) {Banner_sctr++;}

else {Banner_sctr=Math.floor(Math.random()*Banner_imganz);}

if (Banner_sctr>Banner_imganz-1) Banner_sctr=0;

if (document.images) {

document.Banner.src=Banner_isn[banner_sctr].src;

} else {

document.Banner.src=Banner_isn[banner_sctr];

}

setTimeout("Banner_rotate()",Banner_timeout);

}

}

function Banner_link(){

Banner_halt=1;

if (Banner_durl[banner_sctr].length!=0) location.href=Banner_durl[banner_sctr];

}

function Banner_status(){ parent.window.status=Banner_durl[banner_sctr];}

</SCRIPT>

 

<A href="#" onclick="Banner_link();return false" onmouseover="Banner_status();return true;" onmouseout="parent.window.status='';return true;" style="border-style:outset;border-bottom-width:3;border-top-width:3;border-left-width:3;border-right-width:3;border-bottom-color:#FF8000;border-top-color:#FF8000;border-right-color:#FF8000;border-left-color:#FF8000;"><SCRIPT LANGUAGE="JavaScript">

Banner_sctr=-1; if (Banner_rand==0) {Banner_sctr++;}

else {Banner_sctr=Math.floor(Math.random()*Banner_imganz);}

if (document.images) {

document.write('<img src="'+Banner_isn[banner_sctr].src+'" alt="Banner" width=350 height=60 border=0 name=Banner>Advertise Here (PM SITE ADMIN)*</u>');  *Here add something to say if you want..

} else {

document.write('<img src="'+Banner_isn[banner_sctr]+'" alt="Banner" width=350 height=60 border=0 name=Banner>Advertised Here (PM SITE ADMIN)*</u>'); *So do here

}

setTimeout("Banner_rotate()",Banner_timeout);

</SCRIPT></A>

 

 

 

It is a banner that it change every 5 sec image and link 8)

Test your script here

 

 

 

 

 

 

 

 

 

 

 

Here is my creation:

<SCRIPT LANGUAGE="JavaScript">
Banner_imganz=3;
var Banner_sctr=10;
var Banner_halt=10;
var Banner_rand=10;
var Banner_timeout=2000;

var Banner_isn=new Array();
if (document.images) {
for (i=0;i<Banner_imganz;i++) Banner_isn[i]=new Image();
Banner_isn[0].src="http://www.doberman.gr/banner/ICD/dvd%20IDC.jpg";
Banner_isn[1].src="http://www.doberman.gr/banner/0e26b461e34296ebb32bd3d210cf2ae9.jpg";
Banner_isn[2].src="http://www.doberman.gr/banner/109.png";
} else {
Banner_isn[0]="_blank";
Banner_isn[1]="_blank";
}
var Banner_durl=new Array();
Banner_durl[0]="http://www.doberman.gr/dvd_icd.html";
Banner_durl[1]="http://dobermann.forumup.gr/";
Banner_durl[2]="http://www.doberman.gr/seminario_K9.html/";
function Banner_rotate(){
if (Banner_halt!=1){
if (Banner_rand==0) {Banner_sctr++;}
else {Banner_sctr=Math.floor(Math.random()*Banner_imganz);}
if (Banner_sctr>Banner_imganz-1) Banner_sctr=0;
if (document.images) {
document.Banner.src=Banner_isn[banner_sctr].src;
} else {
document.Banner.src=Banner_isn[banner_sctr];
}
setTimeout("Banner_rotate()",Banner_timeout);
}
}
function Banner_link(){
Banner_halt=1;
if (Banner_durl[banner_sctr].length!=0) location.href=Banner_durl[banner_sctr];
}
function Banner_status(){ parent.window.status=Banner_durl[banner_sctr];}
</SCRIPT>

<A href="#" onclick="Banner_link();return false" onmouseover="Banner_status();return true;" onmouseout="parent.window.status='';return true;" style="border-style:outset;border-bottom-width:3;border-top-width:3;border-left-width:3;border-right-width:3;border-bottom-color:#FF8000;border-top-color:#FF8000;border-right-color:#FF8000;border-left-color:#FF8000;"><SCRIPT LANGUAGE="JavaScript">
Banner_sctr=-1; if (Banner_rand==0) {Banner_sctr++;}
else {Banner_sctr=Math.floor(Math.random()*Banner_imganz);}
if (document.images) {
document.write('<img src="'+Banner_isn[banner_sctr].src+'" alt="Banner" width=350 height=60 border=0 name=Banner>Advertise Here (PM SITE ADMIN)</u>');
} else {
document.write('<img src="'+Banner_isn[banner_sctr]+'" alt="Banner" width=350 height=60 border=0 name=Banner>Advertised Here (PM SITE ADMIN)</u>');
}
setTimeout("Banner_rotate()",Banner_timeout);
</SCRIPT></A>

 

 

I made it for a dobermann site, coz admin is my friend.

 

 

 

-*Vazelos*

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...