Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Adding Flash Banner HELP!

Aloittaja Tomtom9800, syyskuu 17, 2007, 03:52:51 IP

« edellinen - seuraava »

Tomtom9800

I have done a search for flash banner and tried the following in order to get my flash banner working correctly and still I am clue less

The top of the page is called from the style.css and to my knowledge is not mentioned in the index.template.php

So in the index.template.php I added the following.
// Add Flash to a banner
    <table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

      <td>

        <div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="576" height="117">

            <param name=movie value="/AH_Halloween_2.swf">

            <param name=quality value=high>

            <embed src="/AH_Halloween_2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="576" height="117">

            </embed>

          </object></div>

      </td>

    </tr>
</table>


I get a parse error everytime I add it and can only not get it by taking that lone of code out.  Can someone please tell me where I am going wrong or notice something wrong in the code??  Thanks for your help

metallica48423

you can't just plop plain html in a php file, you gotta echo it.

echo '
<code>
';

also note that as that code sits it will break your XHTML validation (which isn't important if you don't think it is).  If theres any single quotes in the code ( ' ), they'll have to have a \ placed before them.
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

LainaaMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

franklinrony

gi i add the code
   echo '<object id="metal-1-layer" width="574" height="26"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
<param name="movie" value="menumn.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale"/>
<param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><embed name="metal-1-layer" src="menumn.swf" quality="high" scale="noscale"
bgcolor="#000000" wmode="transparent" width="574" height="26"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
but only appear a blank space in the banner area  its ok the code?
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

metallica48423

it looks alright.  Its parsing if its not throwing an error, and if you're getting a blank space.

You might want to check your code and make sure its right
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

LainaaMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

franklinrony

the code is fine , i think, i test in html page and work fine but when add in the smf dont appear the menu y add the code above the nav bar buttons
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

Advertisement: