Rank: Member
Joined: 5/9/2007(UTC) Posts: 9
|
HI, i m creating a header for a theme. I want to add or insert a flash in my header, so that every page can have a flash at the top. i m creating an ascx file for the header. and calling that it in my other pages. on the default page, flash is coming in the header, but when i click on any category or product , then flash disappers from the header, but other content are still there...
please tell me where's the problem..
Code :
<table cellpadding="0" border="0" cellspacing="0"> <tr> <td colspan="7"> <center> <object width="890" height="207"> <param name="movie" value="images/header.swf" /> <param name="quality" value="high" /> <embed id="flash" src="Images/header.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="890" height="198"></embed><br /> </object> </center> </td> </tr> <tr> <td id="first"></td> <td align="left" valign="top"><a href="http://kidseatfreecard.sequent-tech.com/"><div id="home"></div></a></td> <td align="left" valign="top"><a href="faq.aspx"><div id="faq"></div></a></td> <td align="left" valign="top"><div id="menu_parent"><a href="#" onmouseover=" at_attach('menu_parent', 'menu_child', 'hover', 'y', 'pointer');"><div id="location"></div></a></div> <div id="menu_child" style="position: absolute; visibility:hidden; z-index:1px" > <table width="100" style="background-color:#CF722D; cursor:hand; color:White; border-color:#82A515; border:1px; border-style:solid"> <tr onmouseover="this.bgColor='#82A515'" onmouseout="this.bgColor='#CF722D'"> <td style="font-size:12; font-weight:bold; font-family:Verdana, Arial, Helvetica; "><a href="location.aspx"> Orlando </a></td> </tr></table><br /> </div> </td> <td align="left" valign="top"><a href="restaurant.aspx"><div id="restaurants"></div></a></td> <td align="left" valign="top"><a href="contactus.aspx"><div id="contact"></div></a></td> <br /> </tr> </table>
|
|
|
|
Rank: Member
Joined: 4/10/2006(UTC) Posts: 462
|
Most likely it is your src attribute. When you go to the product or category page, the relative nature of your src url changes because of your directory structure.
Most likely the flash works fine on the home page and any of the customer service/my account pages.
Depending on how flexible you want the site to be, you can either set the path as an absolute path there or you can use the bvc api to build the path from the code-behind. |
Netriplex Corporation<br /> |
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
You may also want to clean up your HTML so you have less to debug when things go wrong; you have a few invalidly nested tags in there, and would be much better off not using all of that table markup for something so simple. |
|
|
|
|
Rank: Member
Joined: 5/9/2007(UTC) Posts: 9
|
Originally Posted by: "caplink" Most likely it is your src attribute. When you go to the product or category page, the relative nature of your src url changes because of your directory structure.
Most likely the flash works fine on the home page and any of the customer service/my account pages.
Depending on how flexible you want the site to be, you can either set the path as an absolute path there or you can use the bvc api to build the path from the code-behind. Thanks for the reply, can u please guide me on how can i use bvc api to build the path from the code-behind..
|
|
|
|
Rank: Member
Joined: 5/9/2007(UTC) Posts: 9
|
can u please guide me on how can i use bvc api to build the path from the code-behind..
|
|
|
|
Rank: Member
Joined: 8/28/2004(UTC) Posts: 463
|
try this, where you have: <param name="movie" value="images/header.swf" />
change it to: <param name="movie" value="/images/header.swf" /> AND change <embed id="flash" src="Images/header.swf" (leave everything after this, i just copied the part you need to change) to this: <embed id="flash" src="/Images/header.swf"
and that should work... |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.