SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Zealot ardit's Avatar
    Join Date
    Aug 2001
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Keeping the frames together and the size of the window unchangeble

    Hey what up all

    I'm talking in regards to my site ( http://air.albania-internet.com ) just pass your cursor over the image and you'll get a pop-up. These pop up will be accessed from different websites and I need that all my frames and the size of the window be like they're supposed to be. The main page defines all the frames and their size. What code do I need to add so that the page checks if the size of the window is what's supposed to be and if not it changes the the window size? Also is there any way I can take make it impossible for the users to maximize the screen e.i. by double clicking on the title bar or by clicking on the maximize button?

    Peace,
    Ardit

  2. #2
    SitePoint Addict
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    346
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just add this to the body tag of your pop up:

    <body OnResize="this.window.resizeTo("yourWidth,yourHeight);">

    That will resize your pop up to the width/height you want whenever the visitor tries to resize it...

  3. #3
    SitePoint Zealot ardit's Avatar
    Join Date
    Aug 2001
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried that but it's just messing up my entire file. Here is the code of the index file of the popup player.

    Ok it does seem like there is an error with posting code on sitepoint. I'll try to post normally see what we get.

    --------Code-----------------

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <title>AIR Player ::: Albania-Internet Radio ::: air.albania-internet.com</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <frameset rows="*" cols="58,508*" framespacing="0" frameborder="NO" border="0">
    <frame src="/images/left%20menu/left.htm" name="leftFrame" scrolling="NO" noresize title="Left Menu">
    <frameset rows="96,*" cols="*" framespacing="0" frameborder="NO" border="0">
    <frame src="/images/head/head.htm" name="topFrame" scrolling="no" noresize title="Head" >
    <frameset rows="122,50" cols="508*" framespacing="0" frameborder="NO" border="0">
    <frame src="/images/main/main.htm" name="mainFrame" frameborder="no" scrolling="auto" noresize title="mainFrame">
    <frame src="/images/ad/ad.htm" name="bottomFrame" frameborder="no" scrolling="NO" noresize title="Ad Space">
    </frameset>
    </frameset>
    </frameset><noframes></noframes>
    <body>
    </body>
    </html>
    -----------------------------------------------------

    Here is the code of the link that opens the popup
    ---------
    ('images/index.htm','AirPlayer','width=550,height=400')"><img src="images/logo2.jpg" alt="Hapni AIR Player" width="250" height="300" border="0"></a></p>
    ---------

    I want that any visitor that comes from any other website and/or tries to mess around with the player gets exactly a popup with only the title bar and with size above.

    Awaiting your response,
    All the best
    Ardit
    Last edited by ardit; Mar 14, 2003 at 15:58.

  4. #4
    SitePoint Zealot ardit's Avatar
    Join Date
    Aug 2001
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone look at this?

  5. #5
    SitePoint Zealot ardit's Avatar
    Join Date
    Aug 2001
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aight, can somebody just tell me if it can be done?

    Is there any code that would do just that, refrain the visitors from changing the size of the window, or max the window?


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
  •