Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im using this http://www.flashxml.net/3d-carousel-menu.html[^]

I have managed to insert my own background image behind the carousel, but i cannot do it also on the page that its embedded on with this:
XML
<body "background-image: url(qpq.jpg);">

nor with this:
<script type="text/javascript">

window.addEvent('domready',function(){
<!-- BG Image load -->
window.addEvents({
// fire when the DOM is loaded
domready: function(){
// path to the image
var pathToBackgroundImage = 'x11.jpg';
// set the background-image
$(document.body).setStyle('background-image','url(' + pathToBackgroundImage + ')');

}

});

</script>

This is my source code for page in question:
XML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title></title>



<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">

var flashvars = {};

var params = {};

params.scale = "noscale";

params.salign = "tl";

params.wmode = "transparent";

var attributes = {};

swfobject.embedSWF("3DCarouselMenuFX.swf", "CarouselDiv", "600", "400", "9.0.0", false, flashvars, params, attributes);

</script>


</head>

<body "background-image: url(images/02.jpg);">

<div style="border: 1px solid black; background-image: url(images/02.png); height: 400px; width: 600px;">

<div id="CarouselDiv"></div>

</div>

<div id="CarouselDiv"> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a> </div>

<span style="z-index: 2; left: 602px; top: 0px; position: absolute;"><iframe name="I1" src="../innext.html" frameborder="0" height="415" scrolling="no" width="760">Your

browser does not

support inline frames or is currently configured

not to display inline frames.</iframe></span>

</body></html>


i strongly suspect that i have just placed the second method in the wrong place. i went to flashxml for help but they said as its not the bg image inside carousel there not assisting with that..so i'm here. please help.
Posted
Updated 23-Feb-12 8:15am
v2

its OK everyone i found the solution

XML
<style>
body {
  background: url("http://yoursite.com/images/image_name.gif") 50% 50% no-repeat;
}
</style>


in between the tags works like a treat!
 
Share this answer
 
as above as above as above as above as above as above as above as above as above
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900