-
flash + htm problem
i'm trying to use a header using a swf file but the whole site
is html and i'm using tables instead of frames, is there a way to call the flash movie so it will always be the same one in every html page without having to copy it again and again?
-
Senior Member
With HTML alone, you can't. Read about SSI (Server-side-includes). That would be the easiest way. If your server does not allow SSI, you can use javascript.
Create a javascript file that contains the code to insert the flash movie: something like:
Code:
document.write("[object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'")
document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'")
document.write("width='280' height='175' id='whatever' align='']")
document.write("[param name='movie' value='whatever.swf']")
document.write("[param name='menu' value='false']")
document.write("[param name='quality' value='high']")
document.write("[param name='bgcolor' value='#ffffff']")
document.write("[embed src='whatever.swf' menu='false'")
document.write("quality='high' bgcolor='#ffffff' width='280'")
document.write("height='175' name='whatever' align=''")
document.write("type='application/x-shockwave-flash'")
document.write("pluginspage='http://www.macromedia.com/go/getflashplayer']")
document.write("[/embed][/object]")
Save this as insertheader.js
Now, you just need one line in all your html files to insert that flash header. Call insertheader.js whereever you need the flash header, like so:
[script language="javascript" src="insertheader.js"][/script]
[change all [ and ] into < and >]
nObOdY dIeS A vIrGiN,
LIfE sCrEwS uS aLL
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|