Results 1 to 8 of 8

Thread: HTML Help

  1. #1
    Senior Member ARRIVALS's Avatar
    Join Date
    Sep 2011
    Posts
    938
    Thanks
    0
    Thanked 24 Times in 21 Posts

    HTML Help

    I need some help re: embedding a SWF file into an HTML page to upload to the web. Not quite sure where to look, so posting here.

    I've embedded the SWF file into an HTML page (Rich did actually, thanks bud :icon_thumbup:) but am looking for code to make the web browser open to the size of the actual SWF file, instead of centering it or positioning it somewhere. I just don't like looking at it with a white or coloured background.

    Any ideas? I can't find it online anywhere. :icon_Wall:

  2. #2
    Senior Member
    Join Date
    Feb 2011
    Location
    Bedford, UK
    Posts
    203
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You can not adjust the properties of a window that is already open. fyi
    you control the scrollbars with
    scrollbars=No or Yes

    <Script Language="javascript">

    var intwidth;
    var intheight;
    intwidth=750;
    intheight=550;
    intwidth=parseInt(intwidth);
    intheight=parseInt(intheight);
    if(intwidth>0&&intheight>0) {window.resizeTo(intwidth,intheight,
    "toolbar=no,location=no,scrollbars=no,status=n o,me nubar=no,resizable=no");
    }
    // End -->
    </script>

  3. #3
    Senior Member ARRIVALS's Avatar
    Join Date
    Sep 2011
    Posts
    938
    Thanks
    0
    Thanked 24 Times in 21 Posts
    Sorry I should have been more clear. I realise I can't change the size of a window that is already open. What I meant to say was even if someone already has a browser open, is there code that will open my site in a new window at the correct size of the SWF?
    Arrivals™ - Graphic Design & Brand Development | Twitter

  4. #4
    Member
    Join Date
    Oct 2011
    Location
    Liverpool
    Posts
    88
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by ARRIVALS View Post
    is there code that will open my site in a new window at the correct size of the SWF?
    I'd go down the thickbox route.

  5. #5
    Senior Member ARRIVALS's Avatar
    Join Date
    Sep 2011
    Posts
    938
    Thanks
    0
    Thanked 24 Times in 21 Posts
    Quote Originally Posted by sdesign1 View Post
    I'd go down the thickbox route.
    No idea what this is. I'm not a web guy, hence why I'm using Flash.
    Arrivals™ - Graphic Design & Brand Development | Twitter

  6. #6
    Member
    Join Date
    Oct 2009
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    If you add some inline javascript within you link (<a>) tag you should be fine, here's an example just change the properites to match your requirements.

    Rachel

    HTML Code:
    <a href="some.html" target="_blank"
    onclick="window.open(this.href,this.target,'height=100, width=100');return false;">Your Link Content</a>
    Find me on twitter | @rachelgregory84

  7. #7
    Senior Member ARRIVALS's Avatar
    Join Date
    Sep 2011
    Posts
    938
    Thanks
    0
    Thanked 24 Times in 21 Posts
    Hi Rachel,

    Thanks a lot for this. Just sent you a PM too.
    Arrivals™ - Graphic Design & Brand Development | Twitter

  8. #8
    Senior Member ARRIVALS's Avatar
    Join Date
    Sep 2011
    Posts
    938
    Thanks
    0
    Thanked 24 Times in 21 Posts
    Quote Originally Posted by rgregory View Post
    Hi

    If you add some inline javascript within you link (<a>) tag you should be fine, here's an example just change the properites to match your requirements.

    Rachel

    HTML Code:
    <a href="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/some.html" target="_blank"
    onclick="window.open(this.href,this.target,'height=100, width=100');return false;">Your Link Content</a>
    Where does that code in my HTML file?

    _________________________________

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>Welcome to Arrivals</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style>
    #arrivals {margin-left:50%; position:relative; left:-450px;}



    </style>


    <script type="text/javascript" src="http://www.graphicdesignforums.co.uk/website-coding-programming-forum/swfobject.js"></script>
    <script type="text/javascript">
    swfobject.embedSWF("arrivals.swf", "arrivals", "900", "700", "9.0.0", "expressInstall.swf");
    </script>
    </head>
    <body>
    <div id="arrivals">

    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
    </div>
    </body>
    </html>
    Arrivals™ - Graphic Design & Brand Development | Twitter

Similar Threads

  1. A little bit of html help needed.....
    By ubikdesign in forum Website Coding & Programming Forum:
    Replies: 5
    Last Post: 02-16-2011, 07:39 PM
  2. Help with HTML?
    By OutTheBox in forum Website Coding & Programming Forum:
    Replies: 14
    Last Post: 12-08-2010, 03:05 PM
  3. HTML Help needed!
    By OutTheBox in forum Website Coding & Programming Forum:
    Replies: 4
    Last Post: 12-06-2010, 12:55 PM
  4. HTML emails
    By fuse in forum Website Coding & Programming Forum:
    Replies: 9
    Last Post: 08-16-2010, 12:13 AM
  5. Css + Html + Me = Fail!
    By TheNoone in forum Website Coding & Programming Forum:
    Replies: 3
    Last Post: 10-23-2009, 11:08 AM

Posting Permissions

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