Jump to content


Photo

html href over .swf


  • Please log in to reply
9 replies to this topic

#1 HEki_

HEki_

    Young Padawan

  • Members
  • Pip
  • 167 posts

Posted 04 May 2007 - 07:21 AM

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
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 ... :biggrin:

#2 Hayden

Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 717 posts
  • Gender:Male
  • Location:Texas

Posted 04 May 2007 - 08:11 AM

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

#3 Archangel

Archangel

    P2L Jedi

  • Members
  • PipPipPip
  • 988 posts
  • Gender:Male
  • Location:Indiana
  • Interests:Reading (mainly fantasy books), Gaming (Xbox 360, Wii &amp; PS3), Sports, Outdoor Recreation, Watching/Collecting Movies

Posted 04 May 2007 - 10:51 AM

Let me know if this works for you...I'd be interested in hearing the results.

#4 Jacorre

Jacorre

    P2L Jedi

  • Members
  • PipPipPip
  • 824 posts
  • Gender:Male
  • Location:USA
  • Interests:Computers, Technology, Internet, Graphic/Web Design, Music, Soccer

Posted 04 May 2007 - 02:33 PM

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?

#5 HEki_

HEki_

    Young Padawan

  • Members
  • Pip
  • 167 posts

Posted 06 May 2007 - 12:38 PM

<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:

<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

#6 HEki_

HEki_

    Young Padawan

  • Members
  • Pip
  • 167 posts

Posted 06 May 2007 - 12:44 PM

yuhu
just added

<PARAM NAME="wmode" VALUE="transparent"> and wmode="transparent" and its working :P

thx guys

#7 SupaNothInG

SupaNothInG

    Young Padawan

  • Members
  • Pip
  • 23 posts
  • Gender:Male
  • Location:Melbourne Australia
  • Interests:Gaming, Friends, xbox 360, Chillin out, coding PHP

Posted 10 May 2007 - 12:25 AM

Glad it's working! I might be using something like this for sure

#8 _jordan

_jordan

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 24 May 2007 - 08:33 PM

do you mean like this ?

<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

#9 HEki_

HEki_

    Young Padawan

  • Members
  • Pip
  • 167 posts

Posted 03 July 2007 - 05:55 AM

i found out that it doesnt work in IE, but i got it working in FF ...
hm hm hm ...

#10 nhoel

nhoel

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 02 May 2009 - 01:22 AM

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 :P

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

Nhoel of keywordspeak.com ;)

Edited by Donna, 03 May 2009 - 12:21 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users