/    Sign up×
Community /Pin to ProfileBookmark

Mouse over problems

Hey

I’m using Homesite 4.0 to create a website and am having lots of problems. Please can someone help the code is below:

<td onmousedown=”location.href=F:Kam – please dont deleteWebsitehomepage.html)”
bgcolor=”#000000″ onmouseOver=”this.bgColor=’#0000cc’
document.body.style.cursor = ‘hand'”

onmouseOut=”this.bgColor=’#000000′; document.body.style.cursor = ‘auto'”
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
<A class=menuitem href=”F:Kam – please dont deleteWebsitehomepage.html”><FONT
face=”Times New Roman”>Home</FONT></A>&nbsp;</TD>

What I want to do is have a horizontal menu bar and if I hover over one of the subjects the background changes colour. I also want the page to change if the subject is clicked.

Thanks for your help

Kam

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@kenderJul 09.2005 — in your head use this[code=html]<script language="JavaScript1.2">
function changeLoc(address){
window.location.href = address;
}

function onOver(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="0000CC";
td.style.cursor="hand";
}
}

function onOut(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#000000";
}
}
</script>[/code]

then for your TD's use this[code=html] <td width="151" class="menu" onMouseover="onOver(this);" onMouseout="onOut(this);" onClick="changeLoc('http://www.whereyougo.com/index.html');">
&nbsp;&nbsp; <a href="http://www.whereyougo.com/index.html" class="white">Home</a></td>
[/code]
×

Success!

Help @kam007 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...