G
greenwire
Guest
Hallo
Habe so ein Script, wenn man mit der maus darauf geht, ändert es die farbe. nin möchte ich, dass wenn man dann drauf klickt man auf eine bestimmte seite weitergeleitet wird.
Habe leider keine ahnung wie das geht. Der code:
<script type="text/javascript" language="javascript">
<!--
function on1()
{if (!document.images) return; document.a.src = "images/sel_link_1.gif"; document.blank.src = "images/blank_1.gif";}
function on2()
{if (!document.images) return; document.b.src = "images/sel_link_2.gif"; document.blank.src = "images/blank_2.gif";}
function on3()
{if (!document.images) return; document.c.src = "images/sel_link_3.gif"; document.blank.src = "images/blank_3.gif";}
function on4()
{if (!document.images) return; document.d.src = "images/sel_link_4.gif"; document.blank.src = "images/blank_4.gif";}
function on5()
{if (!document.images) return; document.e.src = "images/sel_link_5.gif"; document.blank.src = "images/blank_5.gif";}
function on6()
{if (!document.images) return; document.f.src = "images/sel_link_6.gif"; document.blank.src = "images/blank_6.gif";}
function off1()
{if (!document.images) return; document.a.src = "images/link_1.gif"; document.blank.src = "images/blank.gif";}
function off2()
{if (!document.images) return; document.b.src = "images/link_2.gif"; document.blank.src = "images/blank.gif";}
function off3()
{if (!document.images) return; document.c.src = "images/link_3.gif"; document.blank.src = "images/blank.gif";}
function off4()
{if (!document.images) return; document.d.src = "images/link_4.gif"; document.blank.src = "images/blank.gif";}
function off5()
{if (!document.images) return; document.e.src = "images/link_5.gif"; document.blank.src = "images/blank.gif";}
function off6()
{if (!document.images) return; document.f.src = "images/link_6.gif"; document.blank.src = "images/blank.gif";}
var imgslist = new Array(
"images/blank_1.gif",
"images/blank_2.gif",
"images/blank_3.gif",
"images/blank_4.gif",
"images/blank_5.gif",
"images/blank_6.gif",
"images/sel_link_1.gif",
"images/sel_link_2.gif",
"images/sel_link_3.gif",
"images/sel_link_4.gif",
"images/sel_link_5.gif",
"images/sel_link_6.gif");
var imgs=new Array();
for (x=0; x<imgslist.length; x++)
if (document.images)
{imgs[x]=new Image(); imgs[x].src = imgslist[x];}
//-->
</script>
Habe so ein Script, wenn man mit der maus darauf geht, ändert es die farbe. nin möchte ich, dass wenn man dann drauf klickt man auf eine bestimmte seite weitergeleitet wird.
Habe leider keine ahnung wie das geht. Der code:
<script type="text/javascript" language="javascript">
<!--
function on1()
{if (!document.images) return; document.a.src = "images/sel_link_1.gif"; document.blank.src = "images/blank_1.gif";}
function on2()
{if (!document.images) return; document.b.src = "images/sel_link_2.gif"; document.blank.src = "images/blank_2.gif";}
function on3()
{if (!document.images) return; document.c.src = "images/sel_link_3.gif"; document.blank.src = "images/blank_3.gif";}
function on4()
{if (!document.images) return; document.d.src = "images/sel_link_4.gif"; document.blank.src = "images/blank_4.gif";}
function on5()
{if (!document.images) return; document.e.src = "images/sel_link_5.gif"; document.blank.src = "images/blank_5.gif";}
function on6()
{if (!document.images) return; document.f.src = "images/sel_link_6.gif"; document.blank.src = "images/blank_6.gif";}
function off1()
{if (!document.images) return; document.a.src = "images/link_1.gif"; document.blank.src = "images/blank.gif";}
function off2()
{if (!document.images) return; document.b.src = "images/link_2.gif"; document.blank.src = "images/blank.gif";}
function off3()
{if (!document.images) return; document.c.src = "images/link_3.gif"; document.blank.src = "images/blank.gif";}
function off4()
{if (!document.images) return; document.d.src = "images/link_4.gif"; document.blank.src = "images/blank.gif";}
function off5()
{if (!document.images) return; document.e.src = "images/link_5.gif"; document.blank.src = "images/blank.gif";}
function off6()
{if (!document.images) return; document.f.src = "images/link_6.gif"; document.blank.src = "images/blank.gif";}
var imgslist = new Array(
"images/blank_1.gif",
"images/blank_2.gif",
"images/blank_3.gif",
"images/blank_4.gif",
"images/blank_5.gif",
"images/blank_6.gif",
"images/sel_link_1.gif",
"images/sel_link_2.gif",
"images/sel_link_3.gif",
"images/sel_link_4.gif",
"images/sel_link_5.gif",
"images/sel_link_6.gif");
var imgs=new Array();
for (x=0; x<imgslist.length; x++)
if (document.images)
{imgs[x]=new Image(); imgs[x].src = imgslist[x];}
//-->
</script>