Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I try this, but it does not work, I

Status
Not open for further replies.

estesflyer

Programmer
Dec 19, 2000
284
US
I try this, but it does not work, I have written the functions as this
Code:
window.status='look at pictures'; for mouseover
window.status=' '; for mouseout

this is the imap line.

Code:
<area shape=&quot;rect&quot; onMouseOver=&quot;pics()&quot; onMouseOut=&quot;picsoff()&quot; alt=&quot;See pictures of me, my friends, and places I have been&quot; coords=&quot;25,39,83,64&quot; href=&quot;html/pics.html&quot; title=&quot;See pictures of me, my friends, and places I have been&quot;>

it keeps saying object expected.

TIA

- Rusty
 
you don't actually have the &quot;for mouseover&quot; thing there, right? jared@aauser.com
 
whaa? Where does it say that? no i dont, do i need to?
 
add return true; after your function call.


onMouseOver=&quot;pics();return true;&quot;
adam@aauser.com
 
these are the functions....

Code:
<script language=&quot;javascript&quot;>
<!--
function home()
{
window.status='Click here to go the main index page.';
}
function homeoff()
{
window.status='  '
}
/-->
</script>
 
in your imap, you have the function names as 'pics()' and 'picsoff()', and your function names are 'home()' and 'homeoff()'.

I think that these should probably match.
theEclipse
eclipse_web@hotmail.com
robacarp.webjump.com
**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
 
yeh, i know abotu the functions not matching, it was an accident, coz i have multiple functions doing the same thing... anyway, it wont work, and i have tried the return true; besides, the return true is NOT necessary! Does anyone actually know how to fix this problem? its really getting quite annoying....


TIA

- Rusty
 
**what** exactly is not working ? do you have the function called but doing nothing, or do you have the onmouseover event catched but no function called, or not even the event catched ?? are you using ns or ie ? which version ?
 
if you are chaching the status bar on mouseover of a link that has an href, return true; is absolutely necessary. adam@aauser.com
 
well, ok, didnt think that it was tho... but i tried that still, and it doesnt work, lemme show you the WHOLE script....
Code:
<html>
<head>
<title>site</title>
<script language=&quot;javascript&quot;>
<!--
function home()
{
window.status='Click here to go home';
}
function homeoff()
{
window.status=' ';
}
function [URL unfurl="true"]wwwboard()[/URL]
{
window.status='Read about all kinds a crazy stuff mah board!';
}
function [URL unfurl="true"]wwwboardoff()[/URL]
{
window.status=' ';
}
function prevupdate()
{
window.status='Read every single update posted as of January 1, 2000';
}
function prevupdateoff();
window.status=' ';
}
function pics()
{
window.status='see pictures of me, and places that i have been';
}
function picsoff()
{
window.status=' ';
}
function links()
{
window.status='See some links to some other cool sites';
}
function linksoff()
{
window.status=' ';
}
function boutme()
{
window.status='Read about me';
}
function boutmeoff()
{
window.status=' ';
}
function journal()
window.status='I started a journal as of 2001';
}
function journaloff()
{
window.status=' ';
}
function backpack()
{
window.status='Read about all my backpacking adventures!';
}
function backpackoff()
{
window.status=' ';
}
function contact()
{
window.status='Got questions? Comments? Click here to contact me';
}
function contactoff()
{
window.status=' ';
}
//-->
</script>
</head>
<body>
<map name=&quot;toplinks&quot;>
<area shape=&quot;rect&quot; onMouseOver=&quot;home()&quot; onMouseOut=&quot;homeoff()&quot; alt=&quot;Home&quot; coords=&quot;0,4,41,22&quot; href=&quot;[URL unfurl="true"]http://www.cfm-resources.com/e/estesflyer&quot;[/URL] title=&quot;Home&quot;>
<area shape=&quot;rect&quot; onMouseOver=&quot;[URL unfurl="true"]wwwboard()&quot;[/URL] onMouseOut=&quot;[URL unfurl="true"]wwwboardoff()&quot;[/URL] alt=&quot;Post messages, etc...&quot; coords=&quot;53,2,152,23&quot; href=&quot;html/[URL unfurl="true"]wwwboard.html&quot;[/URL] title=&quot;Post messages, etc...&quot;>
<area shape=&quot;rect&quot; onMouseOver=&quot;prevupdate()&quot; onMouseOut=&quot;prevupdateoff()&quot; alt=&quot;Read EVERY single update ever posted on this site!&quot; coords=&quot;160,3,255,23&quot; href=&quot;html/prevupdates.html&quot; title=&quot;Read EVERY single update ever posted on this site!&quot;>
<area shape=&quot;default&quot; nohref>
</map>
<map name=&quot;news&quot;>
<area shape=&quot;rect&quot; onMouseOver=&quot;pics()&quot; onMouseOut=&quot;picsoff()&quot; alt=&quot;See pictures of me, my friends, and places I have been&quot; coords=&quot;25,39,83,64&quot; href=&quot;html/pics.html&quot; title=&quot;See pictures of me, my friends, and places I have been&quot;>
<area shape=&quot;rect&quot; onMouseOver=&quot;links()&quot; onMouseOut=&quot;linksoff()&quot; alt=&quot;TONS of links!&quot; coords=&quot;19,72,68,94&quot; href=&quot;html/links.html&quot; title=&quot;TONS of links!&quot;>
<area shape=&quot;rect&quot; onMouseOver=&quot;boutme()&quot; onMouseOut=&quot;boutmeoff()&quot; alt=&quot;Read all about me&quot; coords=&quot;21,103,93,128&quot; href=&quot;html/about.html&quot; title=&quot;Read all about me&quot;>
<area shape=&quot;rect&quot; onMouseOver=&quot;journal()&quot; onMouseOut=&quot;journaloff()&quot; alt=&quot;Updates posted daily!&quot; coords=&quot;21,136,77,161&quot; href=&quot;html/journal.html&quot; title=&quot;Updates posted daily!&quot;>
<area shape=&quot;rect&quot; onMouseOver=&quot;backpack()&quot; onMouseOut=&quot;backpackoff()&quot; alt=&quot;Read all about my backpacking adventures&quot; coords=&quot;22,167,149,195&quot; href=&quot;html/backpack.html&quot; title=&quot;Read all about my backpacking adventures&quot;>
<area shape=&quot;rect&quot; onMouseOver=&quot;contact()&quot; onMouseOut=&quot;contactoff()&quot; alt=&quot;Got questions? Comments? Click here to contact me&quot; coords=&quot;22,199,103,223&quot; href=&quot;html/contact.html&quot; title=&quot;Got questions? Comments? Click here to contact me&quot;>
<area shape=&quot;default&quot; nohref>
</map>
</body>
</html>



if you know how to help, PLZ lemme know!!
this is REALLY making my hair fall out!
:)

- Rusty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top