fortnox
24.03.2004, 11:46
Hallo!
Ich würde gerne meinen Bannerrotator im vb3 mit 1 bis 2 Leerzeilen dazwischen neben das Forumslogo setzen, habe aber überhaupt keine Ahnung wo und wie.
Kann mir da bitte jemand weiterhelfen?
Da script sieht aus wie folgt:
<html>
<head>
<title>JavaScript - Rotating Advertisements</title>
</head>
<script LANGUAGE="JavaScript">
// global variable for current sponsor
var sponsor = 1;
// function to link to appropriate sponsor
// (for demonstration, displays a dialog instead)
function GoSponsor() {
if (sponsor==1) window.location.href="http://www.bantele-wassersport.de";
if (sponsor==2) window.location.href="http://www.schlauchbootreparatur.de";
if (sponsor==3) window.location.href="http://www.boatmadholidays.com";
}
// function to rotate image (currently uses 3 images)
function rotate() {
if (++sponsor > 3) sponsor = 1;
document.images[0].src = "banner" + sponsor + ".gif";
window.setTimeout('rotate();',7500);
}
</script>
<body onLoad="window.setTimeout('rotate();',7500);" bgcolor="#FFFFFF">
<p> </p>
<a HREF="javascript:GoSponsor();">
<p align="center"><img NAME="banner" SRC="banner1.gif" border="0" width="468" height="60">
</p></a>
<p align="center"> </p>
</body>
</html>
Dannggee :)
Ich würde gerne meinen Bannerrotator im vb3 mit 1 bis 2 Leerzeilen dazwischen neben das Forumslogo setzen, habe aber überhaupt keine Ahnung wo und wie.
Kann mir da bitte jemand weiterhelfen?
Da script sieht aus wie folgt:
<html>
<head>
<title>JavaScript - Rotating Advertisements</title>
</head>
<script LANGUAGE="JavaScript">
// global variable for current sponsor
var sponsor = 1;
// function to link to appropriate sponsor
// (for demonstration, displays a dialog instead)
function GoSponsor() {
if (sponsor==1) window.location.href="http://www.bantele-wassersport.de";
if (sponsor==2) window.location.href="http://www.schlauchbootreparatur.de";
if (sponsor==3) window.location.href="http://www.boatmadholidays.com";
}
// function to rotate image (currently uses 3 images)
function rotate() {
if (++sponsor > 3) sponsor = 1;
document.images[0].src = "banner" + sponsor + ".gif";
window.setTimeout('rotate();',7500);
}
</script>
<body onLoad="window.setTimeout('rotate();',7500);" bgcolor="#FFFFFF">
<p> </p>
<a HREF="javascript:GoSponsor();">
<p align="center"><img NAME="banner" SRC="banner1.gif" border="0" width="468" height="60">
</p></a>
<p align="center"> </p>
</body>
</html>
Dannggee :)