View Full Version : Adding flash movie to the Header
radarhunter
10-31-2006, 12:57 PM
How can we add a flash (swf file to the header i mean where we have a logo
is there any way we can add a flash file in it`s place ?????
or if we can add one above it ???
i was give a code by a coder :
In your header Template replace this code
<td align="left" valign="middle"><a href="index.php?"><img src="images/greenfox/misc/logo.gif" border="0" alt="StepheniansOnline™ Forums" /></a></td>
With this filling in your flash details width, height, url, etc.
<td align="left" valign="middle"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="width of flash in here" height="height of flash in here" title="your flash file title"> <param name="movie" value="url to swf file"> <param name="quality" value="high"> <embed src="url to swf file" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="width of flash in here" height="height of flash in here"></embed> </object> </td>
but the original code which was to be replaced was not to be found in header or any other template. Can any one help me please...
syrus.xl
10-31-2006, 01:08 PM
You would get a 'white' bounding box using that code, because its using the HTML Embed tag. X-compatibility between browsers will differ, but it will have a mouse-over and a popup stating 'Click to activate this control'.
I'll reply later with the correct way of doing this, bit busy at moment at work.
radarhunter
10-31-2006, 01:10 PM
sure i will wait
this is what is in my header
<style type="text/css">
<!--
A.ssmItems:link {color:black;text-decoration:none;}
A.ssmItems:hover {color:black;text-decoration:none;}
A.ssmItems:active {color:black;text-decoration:none;}
A.ssmItems:visited {color:black;text-decoration:none;}
//-->
</style>
<SCRIPT SRC="ssm.js" language="JavaScript1.2">
//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03' for doctype bug
//For full source, and 100's more DHTML scripts, visit Dynamic Drive DHTML(dynamic html) & JavaScript code library
//Puplished For VB By Developer
</SCRIPT>
<SCRIPT SRC="ssmItems.js" language="JavaScript1.2"></SCRIPT>
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="tborder">
<tr>
<td align="center" valign="top">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr class="header_bg">
<td align="$stylevar[left]" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
<!-- banners --></td>
</tr>
<tr>
<td height="34" colspan="2" class="vb_navigation">
<!-- nav buttons bar -->
<div align="center">
<table cellpadding="0" cellspacing="0" border="0" align="left" class="vb_navigation">
<tr align="center">
<td width="78" height="34" class="css_nav"><a href="home.php$session[sessionurl_q]">Home</a></td>
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td width="78" height="34" class="css_nav"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
<td width="78" height="34" class="css_nav"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td width="78" height="34" class="css_nav"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members]</a></td>
<td width="78" height="34" class="css_nav"><a href="arcade.php$session[sessionurl_q]">$vbphrase[arcade]</a></td>
<td width="78" height="34" class="css_nav"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<!—Mp3 Player Launch -->
<if condition="$show['member']">
<td class="vbmenu_control"><a href="javascript:NewWindow=window.open('mp3playeri ndex.php?do=viewmp3playerpopup','newWin','width=50 0,height=500,left=0,top=0, toolbar=No,location=No,scrollbars=1,status=No,resi zable=No,fullscreen=No');
NewWindow.focus(); void(0);">vbMp3 Player</a></td>
</if>
<!—End Mp3 Player Launch -->
<!-- vbPlaza start -->
<if condition="$show['member']">
<if condition="$vboptions['vbplaza_enabled']"><td id="vbplazamenu" class="vbmenu_control"><a href="$show[nojs_link]#vbplazamenu">$vbphrase[vbplaza_name] $vbphrase[vbplaza_menu]</a> <script type="text/javascript"> vbmenu_register("vbplazamenu"); </script></td></if>
</if>
<!-- vbPlaza end -->
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<else />
<td width="78" height="34" class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[vb_todays_posts]</a></td>
</if>
<td id="navbar_search" width="78" height="34" class="css_nav"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></td>
</if>
<if condition="$show['member']">
<td id="usercptools" width="78" height="34" class="css_nav"><a href="$show[nojs_link]#usercptools">Quick Links</a> <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td width="78" height="34" class="css_nav"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[getnew]</a></td>
<else />
<td width="78" height="34" class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td width="78" height="34" class="css_nav"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="#" onClick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=n o,menubar=no,toolbar=no,scrollbars=yes,resizable=y es,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$show['member']">
<td width="78" height="34" class="css_nav"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
<td width="8" height="34" align="left"><img src="$stylevar[imgdir_misc]/nav_final.gif" width="8" height="34" alt="" border="0" /></td>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->
$menualert
<!-- content table -->
$spacer_open
$_phpinclude_output
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.