How do I create a heading combing a .jpg with a .swf file

liunx

Guest
How would I create a heading that has a .jpg graphic on the left and a .swf flash graphic in the middle and another .jpg graphic on the right? Would I use some type of table, is so any suggestions for the code?<br />
<br />
I'm trying to create a heading for my site with both .jpg and the flash graphics.<br />
<br />
I really need the code, still new at this. <br />
<br />
Thanks in advance!<!--content-->Hi there j2004,<br />
<br />
and a warm welcome to these forums :D<br />
Try this...<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" <br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head><br />
<title>jpg/swf heading</title><br />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /><br />
<br />
<style type="text/css"><br />
/*<![CDATA[*/<br />
#container {<br />
width:600px; /* total width of jpgs and swf */<br />
height:200px; /* height of your heading */<br />
margin:auto;<br />
border:solid 1px #000000;<br />
}<br />
.contents {<br />
float:left;<br />
}<br />
#clear {<br />
clear:both;<br />
}<br />
img {<br />
width:200px; /* width of jpg */<br />
}<br />
object {<br />
width:200px; /* width of swf */<br />
}<br />
/*//]]>*/<br />
</style><br />
<br />
</head><br />
<body><br />
<br />
<div id="container"><br />
<div class="contents"><img src=http://www.webdeveloper.com/forum/archive/index.php/"some.jpg" alt=""/></div><br />
<div class="contents"><object></object></div><br />
<div class="contents"><img src=http://www.webdeveloper.com/forum/archive/index.php/"some.jpg" alt=""/></div><br />
<div id="clear"></div><br />
</div><br />
<br />
</body><br />
</html><br />
<br />
Just change values indicated to suit your requirements :cool:<br />
<br />
coothead<!--content-->I made the changes belowe, but it still didn't work. What am I doing wrong?<br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" <br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head><br />
<title>jpg/swf heading</title><br />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /><br />
<br />
<style type="text/css"><br />
/*<![CDATA[*/<br />
#container {<br />
width:600px; /* total width of jpgs and swf */<br />
height:200px; /* height of your heading */<br />
margin:auto;<br />
border:solid 1px #000000;<br />
}<br />
.contents {<br />
float:left;<br />
}<br />
#clear {<br />
clear:both;<br />
}<br />
img {<br />
width:200px; /* width of jpg */<br />
}<br />
object {<br />
width:200px; /* width of swf */<br />
}<br />
/*//]]>*/<br />
</style><br />
<br />
</head><br />
<body><br />
<br />
<div id="container"><br />
<div class="contents"><img src=http://www.webdeveloper.com/forum/archive/index.php/"C:\Documents and Settings\j\Desktop\picts\3.jpg" alt=""/></div><br />
<br />
<div class="contents"><object>"C:\Documents and Settings\j\Desktop\picts\4140.swf"</object></div><br />
<br />
<div class="contents"><img src=http://www.webdeveloper.com/forum/archive/index.php/"C:\Documents and Settings\j\Desktop\picts\4pic1.jpg" alt=""/></div><br />
<br />
<div id="clear"></div><br />
</div><br />
<br />
</body><br />
</html><!--content-->Hi there j2004,<br />
<br />
You cannot call your .swf file in that manner, put it in the code like this...<br />
<div class="contents"><br />
<object type="application/x-shockwave-flash" data="4140.swf"><br />
<param name="movie" value="C:\Documents and Settings\j\Desktop\picts\4140.swf" /><br />
</object><br />
</div><!--content-->That worked great! Now can you help me incorporate it into the website (<!-- m --><a class="postlink" href="http://www.military-crimes.com">http://www.military-crimes.com</a><!-- m -->) As you can see the heading is one big graphic and I want to make it as the code above states. Please help.<!--content-->Hi there j2004,<br />
<br />
'Now can you help me incorporate it into the website. <br />
As you can see the heading is one big graphic and I <br />
want to make it as the code above states.' <br />
<br />
That request is rather vague. <br />
Are you saying that<br />
you want to replace logo.swf with 4140.swf<br />
and place 3.jpg to the left and 4pic1.jpg<br />
to the right of this .swf ?<br />
<br />
If so do you want to do away with the javascript <br />
that you, at present, employ for the header ?<br />
What are the dimensions of the jpgs and the swf ?<br />
<br />
Provide some more information and also attach copies <br />
of the items to be used and we will see what can be done :D<br />
<br />
coothead<!--content-->main2.jpg is the present graphic that needs to be changed.<br />
<br />
I would like to make the two .jpgs and the .swf fit in the same space which is 720 X 90 pixels.<!--content-->Here's the other .jpg.<br />
<br />
It will not allow me to upload the flash. I can email it to you, if you don't mind.<!--content-->Hi there j2004,<br />
<br />
I've have the images OK <br />
Put the .swf in a zip file and then you<br />
will be able to attach it here at forum.<br />
<br />
It is getting rather late - 11pm - this side of the pond so...<br />
I will give it my fullest attention tomorrow morning :D<br />
<br />
coothead<!--content-->I'm getting an error message, "The file that you have tried to attach is too big. The maximum size is 102400 bytes"<br />
<br />
The only other way I know of to get it to you is to email it to you. My email address is <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->. <br />
<br />
I appreciate all your help!<!--content-->Hi there j2004,<br />
<br />
No problem, I have sent you an email :D<br />
<br />
coothead<!--content-->
 
Back
Top