Michi: Verweise

Beitrag lesen

Hallo

Ich habe mir ein slidemenü aus javascript downgeloaded und teils verändert... jetzt habe ich aber ein problem mit den verweisen... auf http://www.free.pages.at/prophet014 sieht man es... als verweis habe ich derzeit einen alert aber wie schaffe ich es ein verweis zu machen wie in html mit href der funktioniert! das ist das jetzige script:

<html>
<head>
<meta http-equiv="imagetoolbar" content="no">
<title>rand.gif</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -

var menu1top=400
var menuleft=-49

var pace=17

// Don't change the variables below.
var step
var direction
var pause=25

var thismenu
var vorzeichen=1
var vorzeimenu1=-1

var menuismoving="no"

function gotourl(thisurl) {
    alert("\n\nDie Homepage bekommt einen neuen Style!\nLeider dauert dies länger und du kannst daher nicht auf "+thisurl+".html weiterverbunden werden.\nMFG Prophet")
}

function inite() {
 if (document.layers) {
        document.menu1.left=menuleft
        document.menu1.top=menu1top
 }
 if (document.all) {
        document.all.menu1.style.posLeft=menuleft
        document.all.menu1.style.posTop=menu1top
 }
}

function getmenuname(clickedmenu) {
    if (menuismoving=="no") {
     if (document.layers) {
            thismenu=eval("document."+clickedmenu)
     }
     if (document.all) {
            thismenu=eval("document.all."+clickedmenu+".style")
     }
        step=pace
        checkdirection()
     movemenu()
    }
}

function checkdirection() {
 if (document.layers) {
        if (thismenu==document.menu1){vorzeimenu1=vorzeimenu1*-1;vorzeichen=vorzeimenu1}
 }
 if (document.all) {
        if (thismenu==document.all.menu1.style){vorzeimenu1=vorzeimenu1*-1;vorzeichen=vorzeimenu1}
 }
    menuismoving="yes"
}

function movemenu() {
 if (document.layers) {
        if (step>=0) {
            thismenu.left+=step*vorzeichen
            step--
            var movetimer=setTimeout("movemenu()",pause)
     }
        else {
            menuismoving="no"
            clearTimeout(movetimer)
        }
 }
 if (document.all) {
        if (step>=0) {
            thismenu.posLeft+=step*vorzeichen
            step--
            var movetimer=setTimeout("movemenu()",pause)
     }
        else {
            menuismoving="no"
            clearTimeout(movetimer)
        }
    }
}
// - End of JavaScript - -->
</SCRIPT></head>

<style type="text/css">
 #menu1 {position:absolute;left:-1000px;}
 .baseline {
  position:absolute;
  left:250px;
  top:100px;
     font-family:Arial;
     font-size:9pt;
  color:000000;
 }
</STYLE>

</HEAD>
<BODY bgcolor="#FEFFDF" onLoad="inite()">

<DIV ID="menu1">
<IMG SRC="http://www.free.pages.at/prophet014/grafiken/menu/menu.gif" USEMAP="http://www.free.pages.at/prophet014/grafiken/menu/#menu.gif" WIDTH=208 HEIGHT=273 BORDER=0>
<MAP NAME="menu.gif">

<AREA SHAPE=RECT COORDS="175,100,200,160" HREF="javascript:getmenuname('menu1')">
<AREA shape=RECT coords=25,20,70,35 href="javascript:gotourl('home')">
<AREA shape=RECT coords=25,40,160,60 href="javascript:gotourl('login_anmeldung')">
<AREA shape=RECT coords=25,65,100,80 href="javascript:gotourl('fotoalbum')">
<AREA shape=RECT coords=25,85,140,100 href="javascript:gotourl('meine_suesse_maus')">
<AREA shape=RECT coords=25,104,153,119 href="javascript:gotourl('der_name_prophet')">
<AREA shape=RECT coords=25,124,85,141 href="javascript:gotourl('projekte')">
<AREA shape=RECT coords=25,144,95,160 href="javascript:gotourl('gaestebuch')">
<AREA shape=RECT coords=25,164,65,181 href="javascript:gotourl('news')">
<AREA shape=RECT coords=25,185,80,201 href="javascript:gotourl('kontakt')">
<AREA shape=RECT coords=25,206,95,221 href="javascript:gotourl('spielecity')">
<AREA shape=RECT coords=25,226,105,241 href="javascript:gotourl('downloads')">
</MAP></DIV>

<div style="position: absolute; top: 15; left: 10; width: 779; height: 863">
<table border="0" cellpadding="0" cellspacing="0" width="870">
<!-- fwtable fwsrc="indexoffen.png" fwbase="rand.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
  <tr>
   <td width="122"><img src="spacer.gif" width="122" height="1" border="0" alt=""></td>
   <td width="168"><img src="spacer.gif" width="77" height="1" border="0" alt=""></td>
   <td width="572"><img src="spacer.gif" width="572" height="1" border="0" alt=""></td>
   <td width="8"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
  </tr>

<tr>
   <td colspan="3" width="771">
   <span style="position: absolute; left: -12; top: -4; z-index:1"><img name="rand_r1_c1" src="http://www.free.pages.at/prophet014/grafiken/menu/rand_r1_c1.gif" width="771" height="262" border="0" alt=""></span></td>
   <td width="8"><img src="spacer.gif" width="1" height="262" border="0" alt=""></td>
  </tr>
  <tr>
   <td rowspan="2" width="122">
   <span style="position: absolute; left: -12; top: 258; z-index:10">
   <img name="rand_r2_c1" src="http://www.free.pages.at/prophet014/grafiken/menu/rand_r2_c1.gif" width="122" height="536" border="0" alt=""></span></td>
   <td width="8"> </td>
  </tr>
  <tr>
   <td width="8"> </td>
  </tr>
</table>
</div>
</body>
</html>