Hello,

I've been looking to use this as a solution to no flash as well as the
header showing up as a "puzzle piece" until clicked, however, when I
use swfobject my swf file no longer receives the query string
variable. I've tried both methods as well as the "flashvars" parameter
but still can't get this to work. The static method is the only one
that loaded the movie but still caused problems with the query string
vars not being passed. If anyone can offer any insight I would
appreciate it.

swfhead_dynamic.php

<div id="container">
<div id="bghead">
<p>Alternative Content</p>
</div>

swfhead_static.php

<div id="container">
<div id="bghead">
<object id="swfhead" classid="clsid:d27cdb6e-
ae6d-11cf-96b8-444553540000" width="740" height="120" id="head"
align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value=head.swf?pt=<?php echo $_GET['pt']; ?> />
<PARAM NAME=FlashVars VALUE=pt=<?php echo $_GET['pt']; ?> >
<param name="loop" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#cccccc" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="head.swf"
width="740" height="120">\
<!--<![endif]-->
<div>
<p><a href="http://www.adobe.com/go/getflashplayer";><img src="http://
www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>

calling script for swfhead_dynamic.php:

<?php
include("includes/fns.php");

function do_html_header()
{
        $title = check_page_title();
        $heading = ucfirst($title);
        // print HTML header
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
<title>neridasign ~:: <?php echo $heading; ?></title>
<link rel="stylesheet" type="text/css" href="css/neridasign.css" />
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {'pt='+<?php echo $_GET['pt']; ?>};
swfobject.embedSWF("head.swf", "bghead", "740", "120", "9.0.0",
"expressInstall.swf", flashvars);
</script>
</head>
<body>
<?php include_once('includes/swfhead_dynamic.php'); ?>

calling script for swfhead_static.php:

<?php
include("includes/fns.php");

function do_html_header()
{
        $title = check_page_title();
        $heading = ucfirst($title);
        // print HTML header
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
<title>neridasign ~:: <?php echo $heading; ?></title>
<link rel="stylesheet" type="text/css" href="css/neridasign.css" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("head.swf", "swfhead", "740", "120", "9.0.0",
"expressInstall.swf");
</script>
</head>
<body>
<?php include_once('includes/swfhead_static.php'); ?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to