VSD Background Image - Post ID 91212
I tried putting the following html code in the header to get an image to display in the background but I can't seem to get it to work. Any ideas?
body {
background: url ("http://www.koryu-uchinadi.us/contents/media/photogray_bg2.jpg");
}
Here is the URL http://www.koryu-uchinadi.us/contents/c … endar.html
Thanks
Tony
body {
background: url ("http://www.koryu-uchinadi.us/contents/media/photogray_bg2.jpg");
}
Here is the URL http://www.koryu-uchinadi.us/contents/c … endar.html
Thanks
Tony
This is the code you have inserted into the head of your page:
Whatever you are trying to do with the body tag, you should try to find another way because you can't have two body tags, and you certainly don't want one in the middle of the head section of your html.
The object code should be embedded into the body of the page, and the styling needs to be within style tags. So, you could use this in the head of the page:
And this code needs to go into the body of the page:
<link href="http://www.koryu-uchinadi.us/contents/calander/calendar.css" rel="stylesheet" type="text/css" />
<Body onload="AdjustMenu('color','false',200,150)" onresize="AdjustMenu('color','false',200,150)">
<object id="color" width="742" height="172"
style="position:absolute;top:169px;left:255px;z-Index:10;width:742px;"
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="flashvars" value="Copyright=[www.dreamingsoft.com]">
<param name="movie" value="mainmenu.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale"/>
<param name="bgcolor" value="#FFFFFF" /><param name="wmode" value="transparent" /><embed name="color" src="mainmenu.swf" quality="high" scale="noscale"
bgcolor="#FFFFFF" wmode="transparent" width="742" height="172"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
body {
background: url ("http://www.koryu-uchinadi.us/contents/media/photogray_bg2.jpg");
}
<Body onload="AdjustMenu('color','false',200,150)" onresize="AdjustMenu('color','false',200,150)">
<object id="color" width="742" height="172"
style="position:absolute;top:169px;left:255px;z-Index:10;width:742px;"
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="flashvars" value="Copyright=[www.dreamingsoft.com]">
<param name="movie" value="mainmenu.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale"/>
<param name="bgcolor" value="#FFFFFF" /><param name="wmode" value="transparent" /><embed name="color" src="mainmenu.swf" quality="high" scale="noscale"
bgcolor="#FFFFFF" wmode="transparent" width="742" height="172"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
body {
background: url ("http://www.koryu-uchinadi.us/contents/media/photogray_bg2.jpg");
}
Whatever you are trying to do with the body tag, you should try to find another way because you can't have two body tags, and you certainly don't want one in the middle of the head section of your html.
The object code should be embedded into the body of the page, and the styling needs to be within style tags. So, you could use this in the head of the page:
<link href="http://www.koryu-uchinadi.us/contents/calander/calendar.css" rel="stylesheet" type="text/css">
<style type="text/css">
body {
background: url ("http://www.koryu-uchinadi.us/contents/media/photogray_bg2.jpg");
}
</style>
<style type="text/css">
body {
background: url ("http://www.koryu-uchinadi.us/contents/media/photogray_bg2.jpg");
}
</style>
And this code needs to go into the body of the page:
<object id="color" width="742" height="172" style="position:absolute;top:169px; left:255px; z-Index:10; width:742px;" 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="flashvars" value="Copyright=[www.dreamingsoft.com]">
<param name="movie" value="mainmenu.swf">
<param name="quality" value="high">
<param name="scale" value="noscale">
<param name="bgcolor" value="#FFFFFF">
<param name="wmode" value="transparent">
<embed name="color" src="mainmenu.swf" quality="high" scale="noscale" bgcolor="#FFFFFF" wmode="transparent" width="742" height="172" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
<param name="flashvars" value="Copyright=[www.dreamingsoft.com]">
<param name="movie" value="mainmenu.swf">
<param name="quality" value="high">
<param name="scale" value="noscale">
<param name="bgcolor" value="#FFFFFF">
<param name="wmode" value="transparent">
<embed name="color" src="mainmenu.swf" quality="high" scale="noscale" bgcolor="#FFFFFF" wmode="transparent" width="742" height="172" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
Thank you Cary
I will give it a try and let you know.
Thanks
I will give it a try and let you know.
Thanks
Hi Cary
Thanks again
I still can not get the background image to display (outside the body of the page). Any ideas why not?
Tony
Thanks again
I still can not get the background image to display (outside the body of the page). Any ideas why not?
Tony
I didn't notice the space after "url" and before "(".
Remove that space and see if the background shows up.
Remove that space and see if the background shows up.
Hi Cary
That solved the problem
Thanks a million
Tony
That solved the problem
Thanks a million
Tony
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.