Jump to content

layering problem in heading banner


pleek

Recommended Posts

ok so i have this code.

 

Here is what it looks like

 

Here is the code

<html>
<head>
<title>Heading</title>
</head>

<body>
<a href="http://www.craigh.tlcrepair.net">
<img src="http://craigh.tlcrepair.net/mkportal/templates/Forum/images//banner2.jpg" 

width="100%" height="100" border="0">
<center>
<object 

classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com

/pub/shockwave/cabs/flash/swflas.cab#version=7,0,19,0" width="780" HEIGHT="100">
  <param name="movie" value="newbanner5.swf">
  <param name="quality" value="high">
  <param name=wmode value="transparent">  
  <embed src="newbanner5.swf" quality="high" wmode="transparent" 

pluginspage="http://www.macromedia.com/go/getflashplayer" 

type="application/x-shockwave-flash" width="780" HEIGHT="100">
</embed>
</object>
</center>
</a>
</Body>

</html>

 

Im having two problems with this code.

 

    First being that i can not for the life of me get the swf banner in front of the background image. Ive tried a couple of different ways but nether of them worked. This could just mean i was coding it wrong.

 

    Second. The like for the banner is to the main index of my site. When you mouse over the background image the cursor changes to a pointer but not when you mouse over the swf banner even though they are both part of the same link.

 

Any help on ether of these problems would be much appreciated.

Link to comment
https://forums.phpfreaks.com/topic/87282-layering-problem-in-heading-banner/
Share on other sites

Try using the background image as the background to a <div> then placing the flash animation in that div.

This should help you, I didn't check for typos but it should work.

 

<html>
<head>
<title>Heading</title>
</head>

<body>
<div style="background-image: url("http://craigh.tlcrepair.net/mkportal/templates/Forum/images/banner2.jpg"); width: 100%; height: 100px; text-align: center;">
<a href="http://www.craigh.tlcrepair.net">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflas.cab#version=7,0,19,0" width="780" HEIGHT="100">
  <param name="movie" value="newbanner5.swf">
  <param name="quality" value="high">
  <param name=wmode value="transparent">  
  <embed src="newbanner5.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" HEIGHT="100">
</embed>
</object>
</a>
</div>
</body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.