Jump to content
  • 0

проблемы с javascript


Rambo2045
 Share

Question

Подскажите как заменить кнопку

<input type="button" value="Навигация по разделу"

на вот это

.menu{
width:55px;
height:30px;
float:left;
background:url(call.png);
}
.menu:hover{
background:url(call1.png);
}
.clear{
clear:both;
}

<div style="position:absolute; top:0; right:0; margin-right:140px;">
<a href="www.google.ru"><div class="menu"></div></a>
<div class="clear"></div>
</div>

Вот сам код:

<html>
<head>
<title>сайт</title>
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
<Style>
A:Link{ Color: #000000; Text-decoration: underline}
A:Visited{ Color: #000000; Text-decoration: underline}
A:Hover{ Color: #000000; Text-decoration: none}
td, body {font-family: verdana, arial, helvetica; font-size:11px;}
</Style>
<script language="JavaScript">
var eypos=-200, ejump=-4;
var typos=-260, tjump=-4;
var delay=2;
function do_menue()
{
if(typos>-260)
{
tjump=-4;
if(typos>=130)
head_fahren();
}
ejump=-ejump;

if(eypos<=-200 || eypos>=20)

menue_fahren();
}

function menue_fahren()
{
if(document.layers) document.menue.top=eypos; else document.all.menue.style.top=eypos;
eypos+=ejump;
if(eypos>-200 && eypos<20)
setTimeout("menue_fahren()", delay);
}

function do_head()
{
if(eypos>-200)
{
ejump=-4;
if(eypos>=20)
menue_fahren();
}
tjump=-tjump;
if(typos<=-260 || typos>=130)
head_fahren();
}
function head_fahren()
{
if(document.layers) document.head.top=typos; else document.all.head.style.top=typos;
typos+=tjump;
if(typos>-260 && typos<130)
setTimeout("head_fahren()", delay);
}
</script>
</head>
<div style="position:absolute; top:0; right:0; margin-right:140px;">
<p><input type="button" value="Навигация по разделу"
onClick="javascript:do_menue()">
</p>
</TABLE>
</div>
<div id=menue style="position:absolute; top:-80; right:0; z-index: 2;">
<TR>
<TD>
<A ONMOUSEOVER="window.status='Здесь должен быть ваш текст' ;return true" target="dummy">[ВАШ ТЕКСТ 7]</a></TD>
</TR>
</TABLE>
</div>
</html>

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

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
Answer this question...

×   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.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy