PDA

View Full Version : How can i add a movie to this tooltip?



kalew
02-04-2007, 04:27 PM
1) Script Title: DHTML Tip Message

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/popinfo.htm

3) Describe problem: I figured out how to add an image to the "sticky style" tooltip, but I really would like to add a small 'movie' instead. Can someone please let me know how to add the below movie code...I tried adding it to one of the 'text' fields in the Style.js, but it did not work. Thank you.

<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"
id="virtualtourtest"
width="300" height="250"
>
<param name="movie" value="virtualtourtest.swf">
<param name="bgcolor" value="#FFFFCC">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
name="virtualtourtest"
width="300" height="250"
src="virtualtourtest.swf"
bgcolor="#FFFFCC"
quality="high"
swliveconnect="true"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object>

beeps
02-05-2007, 06:29 AM
Hi There,
please have a look to the attached files.
Modified file "style.js"(var embdObj )776

kalew
02-05-2007, 07:44 PM
Thank you, Beeps. I appreciate you doing this for me. I cannot seem to get it to work, though. Do I need to add something to the "Text [x]" line of the Style.js file? This is what I currently have, which displays an image (want the movie to play instead of the image):

Text[1]=["Bedroom","<img src=OGmanbed.jpg>"]

Thank you

kalew
02-05-2007, 10:05 PM
Oops...A few minutes after my last post I figured it out - imagine that!!!

I just replaced this line: Text[1]=["Bedroom","<img src=OGmanbed.jpg>"]
with this: Text[1]=["Bedroom","<embed=nameofmymovie.swf>"]

Thanks anyway!!

beeps
02-06-2007, 08:18 AM
sir...please keep yourself cool and have a look into style.js. You will find one varible named "embdObj".
I have already mentioned the embded object there.
Please animate the movie as oer your requirmrnt and ..... :):p

kalew
02-06-2007, 06:21 PM
Beeps,

Sorry if my last post read as though I was anxious. Not the case at all. I was trying to inform you that I figured it out so you wouldn't have to try to explain a simple task to a novice such as myself. In fact, I was surprised and elated that I really did figure it out. So thank you for your kind assistance...I really do appreciate it. Friends??? :)