Help - Search - Members - Calendar
Full Version: html href over .swf
Pixel2Life Forum > Help Section > General Help
HEki_
Hi,
is it posible to have a html href over .swf file? something like <a href="bla.html"><object></object><a/>
i need 2 diff hrefs one is in swf itself and one for php to count the clicks ...

on img this works fine couse i put
CODE
echo " <A HREF=\"[b]click.php[/b]?tid=$stid\" TARGET=\"_blank\"><IMG SRC=\"[b]display.php[/b]?tid=$stid\" BORDER=\"0\" TITLE=\"$opis\"></A> ";


dont know how to set this up with objects ... sad.gif
Hayden
i see no reason why it wouldn't work but it would be the ENTIRE object that would be the link.

you can do links INSIDE the flash, assuming you have the .FLA
Archangel
Let me know if this works for you...I'd be interested in hearing the results.
Jacorre
Wonder if it would still work when using IE with that security feature where you have to click on the flash item to activate it? If you click to activate will it bring you to the url or will you have to click again?
HEki_
CODE
<A HREF=\"click.php?tid=$stid\" TARGET\"_blank\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"468\" height=\"60\">
            <param name=\"movie\" value=\"display.php?tid=$stid\">
            <param name=\"quality\" value=\"high\">
            <embed src=\"display.php?tid=$stid\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"468\" height=\"60\"></embed>
          </object></A>

doesnt work ...

was trying to put a link in div like so:

CODE
<div onclick="window.open('click.php?tid=$stid','_blank');">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="60" height="60">
    <param name="movie" value="1.swf">
    <param name="quality" value="high">
    <embed src="1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="60" height="60"></embed>
  </object>
</div>


no success so far ... still trying
HEki_
yuhu
just added

<PARAM NAME="wmode" VALUE="transparent"> and wmode="transparent" and its working smile.gif

thx guys
SupaNothInG
Glad it's working! I might be using something like this for sure
_jordan
do you mean like this ?

CODE
<a href="test.asp">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="120" height="80">
   <param name="movie" value="banner1.swf">
   <param name="quality" value="high">
   <PARAM NAME="wmode" VALUE="transparent">
   <embed src="banner1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="80"></embed>
</object>
</a>


it doesn't work
HEki_
i found out that it doesnt work in IE, but i got it working in FF ...
hm hm hm ...
nhoel
i have the exact code, the code works on any images like gif

this is the closest forum thread that i saw, though you can convert your swf file to an animated gif, but its not the solution were looking for, especially if the animation is a little heavy.

ill still look around, ill be back if i got this working.

thanks,

Nhoel of keywordspeak.com rolleyes.gif

i tried it on chrome, ff and safari, but cannot still make it work on ie....
status: still looking

Nhoel of keywordspeak.com rolleyes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.