SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Aug 2002
    Location
    Boston
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how do I do this?

    I am trying to optimize for search engines a page that opens with FLASH. I think how I need to do it is to make it in layers with CSS. I want the FLASH movie on top and the text underneath. Here is what I have so far: http://www.geocities.com/cyberartmaster/zorder1.htm (forgive the pop-up!) I have two questions.
    1) How do I adjust the code so that both layers will take up the whole screen on any browser?
    2) What code do I use to put a FLASH movie in the top screen?
    why have a web site if no one can find it?
    ask me about my services?

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1.
    <body>
    <div id="one">HTML div</div>
    <div id="two">Flash div</div>
    <script language="javascript">
    if(document.all)
    {
    w = document.body.clientWidth;
    h = document.body.clientHeight;
    }
    else
    {
    w = self.innerWidth;
    h = self.innerHeight;
    }
    document.getElementById("one").style.width = w;
    document.getElementById("one").style.height = h;
    document.getElementById("two").style.width = w;
    document.getElementById("two").style.height = h;
    </script>
    </body>

    2.
    Flash OBJECT and EMBED tag syntax

  3. #3
    SitePoint Member
    Join Date
    Aug 2002
    Location
    Boston
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jofa,

    Thanks for the help. Please forgive me, I'm a newbe with the flash and could use some more help. Here is the code and instructions from Macromedia:

    Adding <OBJECT> and <EMBED> tags manually
    It's simple to create the tags required to display a Flash movie in a browser.

    To add OBJECT and EMBED tags manually: 1 Copy the HTML code below and paste it into your HTML.

    <OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"WIDTH="550" HEIGHT="400" id="myMovieName"><PARAM NAME=movie VALUE="myFlashMovie.swf"> <PARAM NAME=quality VALUE=high>
    <PARAM NAME=bgcolor VALUE=#FFFFFF>

    <EMBED src="myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
    </OBJECT>

    2) Edit the attributes of the tags for the movie.
    Change the HEIGHT and WIDTH parameters to match the height and width of the movie dimensions or use percentage values, if desired.
    Change "moviename.swf" where it appears in the OBJECT and EMBED tags to the name of movie to be played

    I put this code where you wrote "FLASH div" and it's starting to shape up. This leads me to two more questions.
    1) On step 2, what do I write to use percentage values. I know HTML, but not this language (CSS?).
    2) Does "myMovieName" mean the same thing as "moviename.swf"

    Thanks Jofa and everyone else!
    why have a web site if no one can find it?
    ask me about my services?

  4. #4
    SitePoint Member
    Join Date
    Aug 2002
    Location
    Boston
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know how that face got oin there
    why have a web site if no one can find it?
    ask me about my services?

  5. #5
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by avatar80
    I don't know how that face got oin there
    It's because you had the sequence :D in your code.
    The forum software will recognise certain character combinations as attempts to make a 'smilie' and will render the graphic instead.

    To avoid that happening, simply select the "Disable Smilies in This Post" in the Options below the text field when making (or editing) a post.

    You can remove it from that post by editing it and resubmitting it with the Disable Smilies checkbox ticked.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  6. #6
    SitePoint Zealot
    Join Date
    Jul 2002
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by avatar80
    I don't know how that face got oin there
    Haha, looks like your code is bugged, you got the cookie monster in there


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •