Hallo liebe Profis,
ich bin neu hier weil ich dringend Eure Hilfe brauche. Seit langer Zeit bin ich auf der Suchen nach rotirenden Links, damit sich niemand mehr beschweren kann, das er auf unserer Linkseite nicht in der ersten Reihe steht. Nun endlich habe ich ein Script gefunden doch wie bekomme ich es hin, das der angegebene Link zur externen Adresse wechselt ? Die *Beschreibung* im Script , brauche ich nicht aber ich möchte auf die anderen Seiten weiterleiten. Ich hoffe Ihr könnt mir weiterhelfen.
Es sei noch erwähnt das ich null Ahnung von Javascripts habe...
Ich bedanke mich im voraus
Hier ist nun mein Script:
ich bin neu hier weil ich dringend Eure Hilfe brauche. Seit langer Zeit bin ich auf der Suchen nach rotirenden Links, damit sich niemand mehr beschweren kann, das er auf unserer Linkseite nicht in der ersten Reihe steht. Nun endlich habe ich ein Script gefunden doch wie bekomme ich es hin, das der angegebene Link zur externen Adresse wechselt ? Die *Beschreibung* im Script , brauche ich nicht aber ich möchte auf die anderen Seiten weiterleiten. Ich hoffe Ihr könnt mir weiterhelfen.
Es sei noch erwähnt das ich null Ahnung von Javascripts habe...
Ich bedanke mich im voraus
Hier ist nun mein Script:
PHP:
<style type="text/css">
.fly
{
color:grey;
font:normal 12pt cursif;
position:absolute;
visibility:hidden;
z-index:2;
}
.logo
{
font:normal 22.5pt cursif;
color:grey;
position:absolute;
visibility:visible;
z-index:0;
}
.desc
{
text-align:center;
font:bold 8pt verdana;
color:grey;
position:absolute;
width:200px;
visibility:hidden;
z-index:1;
}
</style>
PHP:
<script language="JavaScript">
rotation = new Array();
//rotation[x] = new Array("href","linkname","beschreibung/desc");
rotation[0] = new Array("#","Hawkwind","www.hawkwind.de");
rotation[1] = new Array("#","Ansari","www.ansari.de");
rotation[2] = new Array("#","Cocopas","www.cocopas.de");
rotation[3] = new Array("#","Black.Smokers","www.black-smokers.de");
rotation[4] = new Array("#","Schillingsrott","www.vom-schillingsrott.de");
rotation[5] = new Array("#","Sprockytown","www.von-sprockytown.de");
rotation[6] = new Array("#","Foreigner","www.the-foreigner.de");
rotation[7] = new Array("#","Saxonyforest","www.mainecoon-enge.de");
rotation[8] = new Array("#","Bloomingtree","http://www.tausendbluetenbaum.de");
rotation[9] = new Array("#","Gaitieros","www.gaitieros.de");
rotation[10] = new Array("#","Lennetal","www.vom-lennetal.de");
rotation[11] = new Array("#","Secret.Lions","www.secret-lions.de");
rotation[12] = new Array("#","Red.Passion","www.red-passion-coons.de");
rotation[13] = new Array("#","Merlins.Oak","www.of-merlins-oak.de");
rotation[14] = new Array("#","Moon.Devils","www.moondevils.de");
rotation[15] = new Array("#","Williamsroad","www.williamsroad-mainecoon.de");
rotation[16] = new Array("#","Donatushof","www.vom-donatushof.de");
rotation[17] = new Array("#","Thyvlais","www.thyvlais.de");
rotation[18] = new Array("#","Dante.Speak","www.dantespeak.de");
r = 250; // radius
xoff = 430; // x offset
yoff = 380; // y offset
x1 = xoff - 110; //Bildposition links
y1 = yoff - 95; //Bildposition unten
descleft = xoff - 99; //desc-Position rechts
desctop = yoff + 55; //desc-Position links
pi = Math.PI; // PI
inc = (pi/r); // (links drehen)
// inc = -(pi/180); // (rechts drehen)
document.write("<style type=\"text/css\">.logo{left:" + x1 + ";}.desc{left:" + descleft + ";top:" + desctop + ";}</style>");
function showObject(object) {object.visibility = VISIBLE;}
function hideObject(object) {object.visibility = HIDDEN;}
function slideLogo(from, to) {
if (from < to) {
company.top = (from += 20); //standard. 4
setTimeout('slideLogo(' + from + ',' + to + ')', 30); //standard. 75
}
else initObjects();
}
function initObjects() {
objects = new Array();
for(x=1; x<=rotation.length; x++){
eval("objects.push(fly" + x + ");");
}
pos = new Array();
pos[0] = 0;
for (x=1; x<objects.length; x++) {
pos[x] = parseFloat(pos[x - 1] + ((2 * pi) / objects.length));
}
rotateObjects();
}
function rotateObjects() {
for (x=0; x<pos.length; x++) {
pos[x] += inc;
objects[x].visibility = 'visible';
objects[x].left = (r * Math.cos(pos[x])) + xoff;
objects[x].top = (r * Math.sin(pos[x])) + yoff;
}
rotateTimer = setTimeout("rotateObjects()",70);
}
document.write("<div id=\"company\" class=\"logo\"><p><a href=\"#\">Deutschland</a></p></div>");
for(x=1; x<=rotation.length; x++){
document.write("<div id=\"fly" + x + "\" class=\"fly\"><p><a onMouseOver=\"showObject(desc" + x + "), clearTimeout(rotateTimer);\" onMouseOut=\"hideObject(desc" + x + "), rotateObjects();\" href=\"" + rotation[x-1][0] + "\">" + rotation[x-1][1] + "</a><br></p></div>");
}
for(x=1; x<=rotation.length; x++){
document.write("<div align=\"center\" id=\"desc" + x + "\" class=\"desc\"><p>" + rotation[x-1][2] + "</p></div>");
}
if (document.getElementById) {
before = "document.getElementById('";
after = "').style";
var HIDDEN = "hidden";
var VISIBLE = "visible";
}
else if (document.all) {
before = "document.all.";
after = ".style";
var HIDDEN = "hidden";
var VISIBLE = "visible";
}
else if (document.layers) {
before = "document.";
after = "";
var HIDDEN = "hide";
var VISIBLE = "show";
}
for(x=1; x<=rotation.length; x++) {
eval("var fly" + x + " = " + before + "fly" + x + after);
}
eval("var company = " + before + "company" + after);
for(x=1; x<=rotation.length; x++) {
eval("var desc" + x + " = " + before + "desc" + x + after);
}
slideLogo(0,y1);
</script>
Zuletzt bearbeitet von einem Moderator: