Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Banner Problem (Master Page)

Banner Problem (Master Page)

Scheduled Pinned Locked Moved ASP.NET
helptutorialadobequestion
12 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K ksaw123

    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,

    A Offline
    A Offline
    Ashish Sehajpal
    wrote on last edited by
    #3

    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

    K K 2 Replies Last reply
    0
    • A 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

      K Offline
      K Offline
      Krazy Programmer
      wrote on last edited by
      #4

      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.

      1 Reply Last reply
      0
      • A 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

        K Offline
        K Offline
        ksaw123
        wrote on last edited by
        #5

        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.

        A 1 Reply Last reply
        0
        • K ksaw123

          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.

          A Offline
          A Offline
          Ashish Sehajpal
          wrote on last edited by
          #6

          <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

          K 1 Reply Last reply
          0
          • A 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

            K Offline
            K Offline
            ksaw123
            wrote on last edited by
            #7

            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> &nbsp; <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">

            A 2 Replies Last reply
            0
            • K ksaw123

              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> &nbsp; <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">

              A Offline
              A Offline
              Ashish Sehajpal
              wrote on last edited by
              #8

              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

              K 1 Reply Last reply
              0
              • K ksaw123

                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> &nbsp; <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">

                A Offline
                A Offline
                Ashish Sehajpal
                wrote on last edited by
                #9

                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

                K 1 Reply Last reply
                0
                • A 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

                  K Offline
                  K Offline
                  ksaw123
                  wrote on last edited by
                  #10

                  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?

                  A 1 Reply Last reply
                  0
                  • A Ashish Sehajpal

                    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

                    K Offline
                    K Offline
                    ksaw123
                    wrote on last edited by
                    #11

                    I will install it and I will try it. 1000s of thanks.

                    1 Reply Last reply
                    0
                    • K ksaw123

                      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?

                      A Offline
                      A Offline
                      Ashish Sehajpal
                      wrote on last edited by
                      #12

                      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

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups