Welcome to the IMTalk - Internet Marketing & SEO Forum.
  • Login:
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    goleza's Avatar
    goleza is offline IM & SEO Whisperer goleza is on a distinguished road
    Join Date
    Nov 2011
    Location
    Uganda
    Posts
    35
    Thanks Given
    9
    Thanked 7 Times in 6 Posts

    Smile How Can I Insert A Pop-up Window?

    I have been trying to insert a pop-up window on my main web page in vain. This is why I have decided to raise in this forum for rescue on the following aspects.

    1. How can I resize the pop-up window so that it only displays as per the specified size needed.
    2. What's the best script that displays the pop-up window once on opening the page?
    2. How do you insert the script on the page where you want the pop-up window to display on opening the page?

    Can someone help? I will be glad for any guidance on this matter.

  2. #2
    simbah's Avatar
    simbah is offline IM & SEO Whisperer simbah is on a distinguished road
    Join Date
    Dec 2011
    Location
    Indonesia
    Posts
    60
    Thanks Given
    3
    Thanked 5 Times in 3 Posts
    I try to help u.

    Put this between header <head> here </head>
    Code:
    <script language="JavaScript">
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "','toolbar=1,
    scrollbars=1,location=1,statusbar=1,menubar=1,
    resizable=1,width=100,height=200,left = 462,top = 284');");
    }
    </script>
    put in body <body>

    Code:
    <body onLoad="javascript:popUp('your text here')">
    Open by click

    Code:
    <a href="javascript:popUp('your text')"
    >Buka popUp</a>

  3. The Following User Says Thank You to simbah For This Useful Post:


  4. #3
    shanwaz is offline IM & SEO Whisperer shanwaz is on a distinguished road
    Join Date
    Sep 2011
    Posts
    35
    Thanks Given
    1
    Thanked 0 Times in 0 Posts
    Its Intresting to see this code in its usefull for me

  5. #4
    akira07's Avatar
    akira07 is offline IM & SEO Mumbler akira07 is on a distinguished road
    Join Date
    May 2011
    Posts
    295
    Thanks Given
    0
    Thanked 31 Times in 24 Posts
    Hi, what platform you’re using? If it’s wordpress, then you don’t need to be that technical. You can just use WP pop-up plug-in such as WP No Escape, WP Lap Dance, etc. The setting is fast and easy + customizable.

  6. #5
    simbah's Avatar
    simbah is offline IM & SEO Whisperer simbah is on a distinguished road
    Join Date
    Dec 2011
    Location
    Indonesia
    Posts
    60
    Thanks Given
    3
    Thanked 5 Times in 3 Posts
    Quote Originally Posted by shanwaz View Post
    Its Intresting to see this code in its usefull for me
    use it for adsense in your blog . Such as the link "please go here". when they click that link, they show the ads

    ---------- Post added 12-12-2011 at 09:58 AM ----------

    Quote Originally Posted by akira07 View Post
    Hi, what platform you’re using? If it’s wordpress, then you don’t need to be that technical. You can just use WP pop-up plug-in such as WP No Escape, WP Lap Dance, etc. The setting is fast and easy + customizable.
    its for WP. when using the code, we can save our hosting space.

  7. #6
    goleza's Avatar
    goleza is offline IM & SEO Whisperer goleza is on a distinguished road
    Join Date
    Nov 2011
    Location
    Uganda
    Posts
    35
    Thanks Given
    9
    Thanked 7 Times in 6 Posts
    Well I am not using WordPress. It's a site designed by me, using HTML

  8. #7
    simbah's Avatar
    simbah is offline IM & SEO Whisperer simbah is on a distinguished road
    Join Date
    Dec 2011
    Location
    Indonesia
    Posts
    60
    Thanks Given
    3
    Thanked 5 Times in 3 Posts
    Popup for HTML :

    Put this before </head>
    Code:
    <SCRIPT TYPE="text/javascript">
    <!--
    function popup(mylink, windowname)
    {
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
       href=mylink;
    else
       href=mylink.href;
    window.open(href, windowname, 'width=300,height=320,left=500,top=150,scrollbars,resizable,');
    return false;
    }
    //-->
    </SCRIPT>
    Put this in your text link :
    Code:
    <a href="YOURPAGE.html" onClick="return popup(this, 'notes')">POPUP TEXT</a>
    Remember :
    YOURPAGE.html is your page to show in popup area.
    POPUP TEXT change with your text link. if you want use image, change with :
    Code:
    <img src="yoursite.com/images/yourimage.jpg"></img>


    ---------- Post added 12-16-2011 at 03:10 AM ----------

    Quote Originally Posted by goleza View Post
    Well I am not using WordPress. It's a site designed by me, using HTML
    Try to your HTML site page


 

Similar Threads

  1. The view from my window
    By Phoenyx in forum Coffee Break - General Talk
    Replies: 10
    Last Post: 04-24-2011, 06:32 PM

Tags for this Thread

Posting Permissions

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