Click to See Complete Forum and Search --> : ok.....


weirdo78
09-13-2003, 05:01 PM
ok hi. my names lindsay, and i realise how lame i am when it comes to html and especially javascript which is why it may seem rather stupid to endevour on such a task as to change the website i maintain for a local band to a who javascript mess of a thing. i was attempting frames, it just looked to good to resist. any way im a bit screwed, ive got lovely links which change colour when you pass yer mouse over them (ooooooohhh) but i cant make them link to anywhere, ive tried EVERYTHING i can think of and its driving me crazy. This is the code i gots and im praying someone here can tell me where i need to put the link to make the link page come up in the main section of the page. eternally thankfull and embarrassed. lindsay





<a onmouseover="javascript:flip('home', 2)"
onmouseout="javascript:flip('home', 1)" href="javascript:link()"
;="" target="main"> <img src="home1.gif"
alt="" width="150" height="35" name="home" border="0">
</a>

Jona
09-13-2003, 05:38 PM
href="page_you_want_to_link_to.html"

[J]ona

David Harrison
09-13-2003, 05:46 PM
I think the problem is that the href is full:

<a onmouseover="javascript:flip('home', 2)"
onmouseout="javascript:flip('home', 1)" href="javascript:link()" target="main">
<img src="home1.gif" alt="Home 1" width="150" height="35" name="home" border="0">
</a>

Replace it all with this:

<a onmouseover="flip('home', 2)"
onmouseout="flip('home', 1)" onclick="link()" target="main" href="page.html">
<img src="home1.gif" alt="Home 1" width="150" height="35" name="home" border="0">
</a>

Also you could use CSS to flip your images rather than JavaScript. More people would be able to see your image flipping then.

weirdo78
09-13-2003, 05:48 PM
you sir, are a beautiful beautiful thing. thank you

Jona
09-13-2003, 05:49 PM
Originally posted by weirdo78
you sir, are a beautiful beautiful thing. thank you

To whom are you speaking?

[J]ona

weirdo78
09-13-2003, 06:03 PM
originally to you, since you solved the problem with a few more workings out


the other advice was pretty sound tho, thanks all round really

David Harrison
09-13-2003, 06:04 PM
Happy to partially help. :)

Jona
09-13-2003, 06:05 PM
For my part, you are welcome.

[J]ona