רבסה םע ןטק טירפת דוע
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-8">
<style>
BODY{background-color:white}
A{color:Navy; text-decoration:none}
A:hover{color:red}
A:visited:{color:#808080}
</style>
<script>
/********************************************************************************
Copyright (C) 1999 Thomas Brattli
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts.
This may be used freely as long as this msg is intact!
********************************************************************************/
//You have to set some variables here:
//Set the font for the msg
msgFont='Arial,helvetiva'
//Set the fontSize in px
msgFontSize=12
//Set the fontColor
msgFontColor="black"
/********************************************************************************
Here's the array that holds the text to change the divmessage to
when you mouseover. Change the text here
********************************************************************************/
messages=new Array(6)
messages[0]="Just a sample"
messages[1]="Link nr 2 (this one) is even better!"
messages[2]="This link however, nr3, isn't that good"
messages[3]="Maybe you should try this one?"
messages[4]="Hello?"
messages[5]="Later all.."
messages[6]=""
/********************************************************************************
You don't have to change anything below this
********************************************************************************/
//Browsercheck:
ie=document.all?1:0
n=document.layers?1:0
/********************************************************************************
Constructing the ChangeText object
********************************************************************************/
function makeChangeTextObj(obj){
this.writeref=(n) ? eval('document.'+obj+'.document'):eval(obj);
this.writeIt=b_writeIt;
}
function b_writeIt(text){
if(n){
this.writeref.write(text)
this.writeref.close()
}
if(ie)this.writeref.innerHTML=text
}
/********************************************************************************
The function that calls objects write function with the corect font size
and such onmouseover and mouseout.
********************************************************************************/
function changeText(num){
if(ie || n) oMessage.writeIt('<span style="font-size:' +msgFontSize+'px;
font-family:'+msgFont+'; color:'+msgFontColor+'">'+messages[num]+'</span>')
}
/********************************************************************************
This calls the object constructor
********************************************************************************/
function changeTextInit(){
if(ie || n) oMessage=new makeChangeTextObj('divMessage')
}
//Calls the init function on pageload
onload=changeTextInit
</script>
</head>
<body >
<table width="80%" border="1" cellspacing="2"
cellpadding="2" align="center" bgcolor="#ece8cf"
bordercolor="#666666" class="bord2">
<tr>
<td align="left"><div id="divlinks" style="position:absolute;
left:200; top:10">
<a href="5.html" onmouseover="changeText(0)" onMouseout="changeText(6,0)">Link
1</a>
<a href="#" onmouseover="changeText(1)" onmouseout="changeText(6,1)">Link
2</a>
<a href="#" onmouseover="changeText(2)" onmouseout="changeText(6,2)">Link
3</a>
<a href="#" onmouseover="changeText(3)" onmouseout="changeText(6,3)">Link
4</a>
<a href="#" onmouseover="changeText(4)" onmouseout="changeText(6,4)">Link
5</a>
<a href="#" onmouseover="changeText(5)" onmouseout="changeText(6,5)">Link
6</a>
</div>
<div id="divMessage" style="position:absolute; left:200;
top:30">
Hello
</div> </td>
<tr>
<td align="left"> </td>
</table>
</body>
</html>
|