Banner Problem (Master Page)
-
I want to add a banner into a master page. that banner has this extention .swf (for example: baneer.swf which is a flash) What is the code that I have to write to add this banner and make it work in the master page. Please if you can give good description of how to do it because I am new in this filed. Thank you in advance for your help. Best regards,
use following code.... replace the movie name from "/images/banner.swf" to your banner file <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="308" id="container" align="middle"> <param name="movie" value="/images/banner.swf" /> <param name="quality" value="high" /> <embed src="/images/banner.swf" quality="high" bgcolor="#ffffff" width="959" height="328" name="container" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> cheers ! :)
Ashish Sehajpal
-
use following code.... replace the movie name from "/images/banner.swf" to your banner file <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="308" id="container" align="middle"> <param name="movie" value="/images/banner.swf" /> <param name="quality" value="high" /> <embed src="/images/banner.swf" quality="high" bgcolor="#ffffff" width="959" height="328" name="container" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> cheers ! :)
Ashish Sehajpal
Hey my answer may be peculiar but the way in which i did this thing is added the url inside the Frames and everything worked fine ,,, i dont know whether it is correct or not ..but it works Try it ...
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
-
use following code.... replace the movie name from "/images/banner.swf" to your banner file <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="308" id="container" align="middle"> <param name="movie" value="/images/banner.swf" /> <param name="quality" value="high" /> <embed src="/images/banner.swf" quality="high" bgcolor="#ffffff" width="959" height="328" name="container" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> cheers ! :)
Ashish Sehajpal
-
There is nothing called
Ashish Sehajpal wrote:
in the MasterPage. I mean it is not a property. Is there any solution???! Thanks for your help,but it is not working.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="Object1" width="490" height="352"> <param name="movie" value="images/movie.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <embed name="ad2" src="images/movie.swf" quality="high" bgcolor="#FFFFFF" swLiveConnect="true" width="490" height="352" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> </object> put this tag as it is in HTML SOURCE where you need to put that banner.... it is working dear.. <param name="movie" value="images/movie.swf" /> and <embed name="ad2" src="images/movie.swf" change the value/src to simply point towards your SWF file... try it ....plz
Ashish Sehajpal
-
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="Object1" width="490" height="352"> <param name="movie" value="images/movie.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <embed name="ad2" src="images/movie.swf" quality="high" bgcolor="#FFFFFF" swLiveConnect="true" width="490" height="352" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> </object> put this tag as it is in HTML SOURCE where you need to put that banner.... it is working dear.. <param name="movie" value="images/movie.swf" /> and <embed name="ad2" src="images/movie.swf" change the value/src to simply point towards your SWF file... try it ....plz
Ashish Sehajpal
Thanks again, but it Visual Studio (VS) gives me a red line below embed. It is VS is not recognizing it. It says [ Validation(XHTML 1.0 transitional): Element 'embed' is not supported.]. I don't now what to do. My master page code is as follows:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage5.master.cs" Inherits="MasterPage5" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 100; left: 0px; width: 100%; position: absolute; top: 0px; height: 100%"> <tr> <td rowspan="4" style="width: 8%"> margine</td> <td rowspan="4" style="width: 6px"> h</td> <td colspan="2" style="height: 15%; width: 80em" id="kfupmlogo"> logo <div style="width: 100px; height: 100px"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="Object1" width="700" height="100"> <param name="movie" value="images/logo.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <embed name="ad2" src="images/logo.swf" quality="high" bgcolor="#FFFFFF" swLiveConnect="true" width="490" height="352" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> </object> </div> </td> <td rowspan="4" style="width: 1%; height: 3%">h </td> <td rowspan="4" style="height: 3%; width: 13%"> margine</td> </tr> <tr> <td colspan="2" style="height: 6px">
-
Thanks again, but it Visual Studio (VS) gives me a red line below embed. It is VS is not recognizing it. It says [ Validation(XHTML 1.0 transitional): Element 'embed' is not supported.]. I don't now what to do. My master page code is as follows:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage5.master.cs" Inherits="MasterPage5" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 100; left: 0px; width: 100%; position: absolute; top: 0px; height: 100%"> <tr> <td rowspan="4" style="width: 8%"> margine</td> <td rowspan="4" style="width: 6px"> h</td> <td colspan="2" style="height: 15%; width: 80em" id="kfupmlogo"> logo <div style="width: 100px; height: 100px"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="Object1" width="700" height="100"> <param name="movie" value="images/logo.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <embed name="ad2" src="images/logo.swf" quality="high" bgcolor="#FFFFFF" swLiveConnect="true" width="490" height="352" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> </object> </div> </td> <td rowspan="4" style="width: 1%; height: 3%">h </td> <td rowspan="4" style="height: 3%; width: 13%"> margine</td> </tr> <tr> <td colspan="2" style="height: 6px">
no issues... you save it and close the master form . now run the application without caring about any error and check whether it works or not. [and you have created a div with 100X100 px area...and your SWF movie object's size is 800X600 px... take a look and set it accordingly. EMBED tag is for mozilla fireforx support. if it doesn't recognize you can even remove the embed tag .]
Ashish Sehajpal
-
Thanks again, but it Visual Studio (VS) gives me a red line below embed. It is VS is not recognizing it. It says [ Validation(XHTML 1.0 transitional): Element 'embed' is not supported.]. I don't now what to do. My master page code is as follows:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage5.master.cs" Inherits="MasterPage5" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <table border="0" cellpadding="0" cellspacing="0" style="z-index: 100; left: 0px; width: 100%; position: absolute; top: 0px; height: 100%"> <tr> <td rowspan="4" style="width: 8%"> margine</td> <td rowspan="4" style="width: 6px"> h</td> <td colspan="2" style="height: 15%; width: 80em" id="kfupmlogo"> logo <div style="width: 100px; height: 100px"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="Object1" width="700" height="100"> <param name="movie" value="images/logo.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <embed name="ad2" src="images/logo.swf" quality="high" bgcolor="#FFFFFF" swLiveConnect="true" width="490" height="352" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> </object> </div> </td> <td rowspan="4" style="width: 1%; height: 3%">h </td> <td rowspan="4" style="height: 3%; width: 13%"> margine</td> </tr> <tr> <td colspan="2" style="height: 6px">
do u have adobe dreamweaver installed ? if not then downoad it and install..... it will complete your job very easily...as it will automatically generate the appropriate HTML code if you just insert the SWF file at any point in your form (same as in MS-Word you choose to insert any image to be inserted into the page...)
Ashish Sehajpal
-
no issues... you save it and close the master form . now run the application without caring about any error and check whether it works or not. [and you have created a div with 100X100 px area...and your SWF movie object's size is 800X600 px... take a look and set it accordingly. EMBED tag is for mozilla fireforx support. if it doesn't recognize you can even remove the embed tag .]
Ashish Sehajpal
Thanks again for your help and effort. I have done what you have just said, but it didn't work. I have tried it with both Firefox and Internet Explorer. I shows me the box (width and hiegh), but without showing the banner (content of the banner or the flash). Is it working with you?
-
do u have adobe dreamweaver installed ? if not then downoad it and install..... it will complete your job very easily...as it will automatically generate the appropriate HTML code if you just insert the SWF file at any point in your form (same as in MS-Word you choose to insert any image to be inserted into the page...)
Ashish Sehajpal
-
Thanks again for your help and effort. I have done what you have just said, but it didn't work. I have tried it with both Firefox and Internet Explorer. I shows me the box (width and hiegh), but without showing the banner (content of the banner or the flash). Is it working with you?
ah ! yes i have faced that problem once....that was the problem of faulty publishing of flash movie... currently this ocde is working very fine with me...i have used it on live site... try using some other SWF movie....[download from internet] try this code..... save it as test.html and run this...if it works fabulous then try changing the name of your images/logo.swf with http://www.xpressions-snap.com/images/xflash.swf
<html><body> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6, 0,79,0" id="Object1" width="490" height="352"> <param name="movie" value="http://www.xpressions-snap.com/images/xflash.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <embed name="ad2" src="http://www.xpressions-snap.com/images/xflash.swf" quality="high" bgcolor="#FFFFFF" swLiveConnect="true" width="490" height="352" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> </object> </body></html>
Ashish Sehajpal