NYCPHP Meetup

NYPHP.org

[nycphp-talk] How can I include a hyperlink to swf file ?

P Yurt pyurt at yahoo.com
Wed Mar 14 10:28:07 EDT 2007


v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}..shape {behavior:url(#default#VML);}st1\:*{behavior:url(#default#ieooui) }
This is code to get and use the flashplayer plug-in. 

The code includes 3 variables for the videoor image content: 1) $image_name, 2) $width, 3) $height

 

The call to the player is this: 

        <EMBED src="images/upload/'.$image_name.'"quality=high WIDTH="'.$width.'" HEIGHT="'.$height.'" 

        NAME="MyMovieName"ALIGN="" TYPE="application/x-shockwave-flash"
        PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">



The 3 vars are there-in: 

$image_name, $width &$height

You need to place your content details into these variables.

 

 

Explore the Evolving Web 

www.2.0websites.com  

Paul Yurt, Publisher 

paul(@)2.0websites.com 

480-585-0007

 


---------------------------------


From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Aniesh joseph
Sent: Wednesday, March 14, 2007 5:08 AM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] How can Iinclude a hyperlink to swf file ?


 

Hello

I have uploaded many swf (flash file) and stored their names to tables . Fromtable, I can retrieve the swf file name. These swf files are banners. Whensomeone clicks on the swf banner, it will directs to its  destination url.

How can I add hyperlink to swf files. I found code from net to include swffiles to html. The code is below:  

              ##   $image_name, $width, $height. will come from table.

                <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"             codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
        WIDTH="'.$width.'" HEIGHT="'.$height.'"id="MyMovieName" > 
        <PARAM NAME=movieVALUE="images/upload/'.$image_name.'">
        <PARAM NAME=quality VALUE=high>
        <EMBEDsrc="images/upload/'.$image_name.'" quality=highWIDTH="'.$width.'" HEIGHT="'.$height.'" 
        NAME="MyMovieName"ALIGN="" TYPE="application/x-shockwave-flash"
        PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
        </EMBED>
        </OBJECT>



Using this  code I can show swf files. But it doesn ot give any idea about, including a hyper link.

Can someone help me ?

Regards 
Aniesh Joseph 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070314/ca263ca5/attachment.html>


More information about the talk mailing list