Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
DEADLY-D4D-
New Member
New Member



Joined: Feb 19, 2006
Posts: 14

PostPosted: Thu Mar 01, 2007 5:43 pm Reply with quote

Hey All!

I' am wanting an SWF image (i made) to link to my MP3 player but to open a popup of it at a set size

this is the Script + Block:

Code:


<?php
if (eregi("block-Mp3.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
}

$content = "";

$stuff = <<< End_Stuff
<center>
(Script Tag Goes Here) language="JavaScript" type="text/JavaScript">
<!--
function wimpyPopPlayer(theFile,id,stuff) {
  window.open(theFile,id,stuff);
}
//-->
(Script Tag Goes Here)
<a href="javascript:;" onClick="wimpyPopPlayer('http://www.My Site Link/myWimpy.html','wimpyMP3player','width=269,height=222')"><img src="http://www.My Site Link/Trance.swf" border="0" align="top"></a>
</center>
End_Stuff;

$content .= $stuff;
?>



Which the link works fine except i need it to show the SWF image and it won't, which i guess i need to put it in the proper context like this:
[ Only registered users can see links on this board! Get registered or login! ]

But i ain't sure how i do it =( can anyone give me a hand to edit this block/ script for it to work, i would be greatful.

I would add it inside the SWF file it's self as a link, (which would be easier) but i ain't sure how to do it, i tried many ways but i always get output errors. So if you knew that i would be atlot better!


Anyways hope ya can help me out =)
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Fri Mar 02, 2007 12:36 am Reply with quote

You can't use the IMG tag to do a Flash file. You will have to use the EMBED code as shown in the link you specified

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
DEADLY-D4D-







PostPosted: Sat Mar 03, 2007 2:24 pm Reply with quote

Hi, So do i just replace the <img src etc> with this part?:

<embed src=\"Trance.swf\" quality=high
pluginspage=\"http://www.macromedia.com/shockwave/
download/index.cgi?P1_Prod_Version=ShockwaveFlash\"
type=\"application/x-shockwave-flash\"
width=\"100\" height=\"17\"></embed>
 
DEADLY-D4D-







PostPosted: Sat Mar 03, 2007 2:41 pm Reply with quote

well i just deleted the img and replaced it with this

<embed src="Trance.swf" width="100" height="17"></embed>

It shows but it does not link =(
 
evaders99







PostPosted: Sat Mar 03, 2007 5:16 pm Reply with quote

The Flash file itself will need to capture the click and open the appropriate page
 
DEADLY-D4D-







PostPosted: Sat Mar 03, 2007 6:11 pm Reply with quote

Well i know how to link it to a page but how do i get it to do a popup?, if i just copy and pasted that code it just gives me output errors
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©