Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open the index.html file with a pop-up window.

    Hi guys,

    I have been working on this and cant figure it out.

    I have an index.html as my main file and I wanted to have a pop-up window that will also open together with the index file. the pop-up window is a notepad like type, file name is clipboard.html.

    Addon: i started adding code to have the pop-up to stay on the right side of the screen and always on top.

    As of right now, all codes are very confusing and i decided to delete and start from scratch.

    Can you guys fill in the blanks?

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,175
    Thanks
    23
    Thanked 601 Times in 600 Posts
    The following code will open a div that should answer your needs. Put it where you want on your page and fill it with what ever you want. You might want to add a close button to make it invisible.

    Code:
    #display_message {
    	height: 245px;
        width:300px;
    	overflow: visible;
        background-color:#e1e1e1;
        font-size:11px;
        font-family:verdana;
        color:#000;
        padding: 5px 10px;
    	position: absolute;
    	left: 135px;
    	top: 130px;
    	display: block;
    }

  • #3
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sunfighter View Post
    The following code will open a div that should answer your needs. Put it where you want on your page and fill it with what ever you want. You might want to add a close button to make it invisible.

    Code:
    #display_message {
    	height: 245px;
        width:300px;
    	overflow: visible;
        background-color:#e1e1e1;
        font-size:11px;
        font-family:verdana;
        color:#000;
        padding: 5px 10px;
    	position: absolute;
    	left: 135px;
    	top: 130px;
    	display: block;
    }
    Hi, I am really sorry, i am lost where to place this code. I dont see any calling of the pop-up html in the code. the pop-up html is clipboard.html.

    Should i place this code in the index.html? Thanks.

  • #4
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I was able to decipher it. hahahaha. simple but i got confused.
    ----------


    <html>

    <head>
    <title>SiriusXM Reloaded Call Guide</title>

    <SCRIPT LANGUAGE="javascript">
    <!--
    window.resizeTo(1100,1200)

    window.open("clipboard.htm","","width=185,height=900, left=1080")


    -->
    </SCRIPT>
    </head>

    <frameset rows="53,*">
    <frame name="banner" scrolling="no" noresize target="contents" src="top.htm">
    <frameset cols="1056,*">
    <frame name="contents" target="main" src="call_flow.htm" scrolling="auto">
    <frameset rows="*,66%">
    <frame name="main" src="right.htm" target="_self">
    <frame name="main1" src="clipboard.htm" scrolling="auto">
    </frameset>
    </frameset>
    <noframes>
    <body>

    <p>This page uses frames, but your browser doesn't support them.</p>

    </body>
    </noframes>
    </frameset>

    </html>


  •  

    Posting Permissions

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