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: Sun Nov 11, 2007 4:01 am Reply with quote

Hi,

I was wondering whether i could integrate this:

Code:
$content .= "<embed src=\"LaunchPlayer.swf"  width=\"277\" height=\"250\" type=\"application/x-shockwave-flash\">\n";


Into this working block:

Code:


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

$content = "";

$LaunchPlayer = <<< End_LaunchPlayer
<center>
<script tag language="JavaScript" type="text/JavaScript">
<!--
function wimpyPopPlayer(theFile,id,LaunchPlayer) {
  window.open(theFile,id,LaunchPlayer);
}
//-->
<script tag>
<a href="javascript:;" onClick="wimpyPopPlayer('/mp3player.php','MP3 Player','width=277,height=255')"><img src="/LaunchPlayer.jpg" border="0" align="top"></a>
</center>
End_LaunchPlayer;

$content .= $LaunchPlayer;
?>



is there anyway of doing it?

thanks in advance
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Nov 11, 2007 7:31 pm Reply with quote

Well you can put it at the end of the code, this Flash player will then display after the popup link. Or you can place it before the $LaunchPlayer so that the Flash player will display on top of the popup link

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
DEADLY-D4D-
PostPosted: Mon Nov 12, 2007 12:30 pm Reply with quote

Tried both, they end up making half the site disappear. Any other suggestions?
 
DEADLY-D4D-
PostPosted: Thu Nov 15, 2007 3:03 pm Reply with quote

Still no luck, they both work fine seperate, but together they won't for some reason...it must be the layout or something
 
evaders99
PostPosted: Thu Nov 15, 2007 5:29 pm Reply with quote

Very weird, have the code that you tried?
 
DEADLY-D4D-
PostPosted: Thu Dec 06, 2007 1:32 pm Reply with quote

Hi,

Sorry for the delay, been a bit busy, heres the code i used;

Code:
<?php

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

$content = "";
$content .= "<embed src=\"LaunchPlayer.swf"  width=\"277\" height=\"250\" type=\"application/x-shockwave-flash\">\n";

$LaunchPlayer = <<< End_LaunchPlayer
<center>
<script tag language="JavaScript" type="text/JavaScript">
<!--
function wimpyPopPlayer(theFile,id,LaunchPlayer) {
  window.open(theFile,id,LaunchPlayer);
}
//-->
<script tag>
<a href="javascript:;" onClick="wimpyPopPlayer('/mp3player.php','MP3 Player','width=277,height=255')"><img src="/LaunchPlayer.jpg" border="0" align="top"></a>
</center>
End_LaunchPlayer;

$content .= $LaunchPlayer;
?>
 
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 ©