View Full Version : OnMouseOver With flash
shernoam
05-19-2001, 09:14 AM
Hi!!!
How can I make a simple page with "onmouseover"???
I mean that I will have an animated flash file (with no link of any kind)
& when I will put the mouse pointer over it -A new page will be
downloded...(onmouseover from javascript...)
(I can't use frames...)
Noam
Dr. Web
05-19-2001, 07:01 PM
If you don't want to link to the flash file, I suggest you make the entire sequence in flash. This way it is already loading as the surfer mouses around. Also, by doing this you don't need JS.
shernoam
05-20-2001, 05:26 AM
I need to have a page like this BUT I need it to
run on netscape as well (I picked-up a random swf file -just for this little example...):
---------------start------------------------
<HTML><HEAD><TITLE>Na</TITLE>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=510,height=530,left = 0,top = 0');");
}
// End -->
</script>
<DIV id=aids
style="Z-INDEX: 100023; LEFT: 0px; VISIBILITY: visible; WIDTH: 400px; POSITION: absolute; TOP: 256px; HEIGHT: 15px"><A
onmouseup=stripeScroll.stop() onmouseover="popUp('http://www.yahoo.com')" ;return false"
onmouseout=stripeScroll.stop() href="javascript:popUp('http://www.yahoo.com')">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=400 HEIGHT=71>
<PARAM NAME=movie VALUE="http://www.jibjab.com/spotlight/spot_background.swf">
<PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="http://www.jibjab.com/spotlight/spot_background.swf" quality=high
bgcolor=#000000 WIDTH=400 HEIGHT=71 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
</A></DIV>
</HTML>
--------------------cut here---end--------------
shernoam
05-20-2001, 05:32 AM
I need to have a page like this BUT I need it to
run on netscape as well (I picked-up a random swf file -just for this little example...):
---------------start------------------------
<HTML><HEAD><TITLE>Na</TITLE>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=510,height=530,left = 0,top = 0');");
}
// End -->
</script>
<DIV id=aids
style="Z-INDEX: 100023; LEFT: 0px; VISIBILITY: visible; WIDTH: 400px; POSITION: absolute; TOP: 256px; HEIGHT: 15px"><A
onmouseup=stripeScroll.stop() onmouseover="popUp('http://www.yahoo.com')" ;return false"
onmouseout=stripeScroll.stop() href="javascript:popUp('http://www.yahoo.com')">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=400 HEIGHT=71>
<PARAM NAME=movie VALUE="http://www.jibjab.com/spotlight/spot_background.swf">
<PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="http://www.jibjab.com/spotlight/spot_background.swf" quality=high
bgcolor=#000000 WIDTH=400 HEIGHT=71 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
</A></DIV>
</HTML>
--------------------cut here---end--------------
DaronLawing
05-21-2001, 04:07 PM
It appears that you want to use the flash movie like an image inside the anchor tags. Why not put the link into the flash movie? What is your reason for keeping the programming out of the flash file? Netscape and IE both support this. You can use FSCommand from the flash movie to talk to the javascript on the page if you are looking for more programability however, i'm just not certain why you don't put the rollover in the movie? can you give me further requirements?
shernoam
05-21-2001, 04:41 PM
I'm using a swf file made by "Flax" - a flash
text effects utility...that generate just
the swf (without any link...& without *.fla
support...)
!!!!!!!!!!!!!!!!!!!
DaronLawing
05-21-2001, 04:47 PM
i have never used flash as a "graphic" but i don't think you have to use all of the embed object stuff. i'm guessing here but i think you can simply use an src tag inside your anchor tags src=http://www.jibjab.com/spotlight/spot_background.swf and it will work. if not i'll have to get back to you after i've tested this one out cause it looks like a fun (yet totally unnecessary :) way of using flash movies!
kevin
05-21-2001, 06:22 PM
If it works I'll be surprised. Using an swf file as a source should not work as the browser does not handle the swf file, the flash plugin does.
Why is the Z-INDEX set to 100023? That makes it the 10,0023rd layer does it not? Probably doesn't matter but I was just curious....
Regards,
Kevin
Dr. Web
05-22-2001, 02:18 AM
to my knowledge you cant wrap a swf file inside an href and get it to work. I have tried, believe me. You need to get into the FLA file of the movie (not the swf file). You would then need to edit it a bit,and assign link properties and all.
tony10
06-07-2001, 03:42 AM
I love:)How you <sneak> the ;) into the coding.
:)TML 1.0!
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.