Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: a shot in the dark. javascript help?
From: Eric Dunham
Date: Thu, 30 Mar 2000 05:27:32 +0100

You need to disable the href from executing when the user clicks on it.
<a href="#" onmouseover="mouseover_function();"
onclick="your_function_here(); return false;">
You need to have the return false statement in there to keep anything from
happening after you function or whatever goes off.
You could even try something silly like <a href="some_url_here.com"
onclick="return false;"> to test out the different things that will happen
with your <a> tag. In the above example, nothing at all will happen. Yes, I
know it's a link, but the return false; statement will subsume any href
parameter that the <a> tag might have. Even though there are other ways to
do it, it's also a useful way to validate forms.
For example...
<input type=submit value=submit name=submit onclick="(validate(this.form))?
return true:return false;">
Anyway, have fun and good luck.

HTH,
Eric Dunham

<snip>
I have an image in a page that I'm using with an onclick behavior to
control a Shockwave movie. But it sticks that dumb # sign in the href
code, which dumps the browser back to the top of the page. In most
cases i could switch to the other onclick behavior, and it would work
fine, but there's also a rollover behavior on this particular one, so i
believe it's going to require the image to be a link. The information i
saw about this was a little piece of javascript code that you could set
into the href parameter to prevent the page hop.
</snip>


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: a shot in the dark. javascript h, Jill Jones

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]