Results 1 to 2 of 2

Thread: need help on setting up Rss Feed

  1. #1
    Join Date
    Nov 2005
    Location
    Townsville/Australia 146.7661°E, 19.2483°S
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default need help on setting up Rss Feed

    Hi guys

    i'm setting up a popup window for my weathernews but dose not want to work at all
    HTML Code:
    <a href="stormnews.php"><img src="images/read3.jpg" border="0" onClick="MM_openBrWindow('','','')"></a>
    i'm not sure what size to use for the popup window i have the code but where dose it go.

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    If you are looking for creating a new browser (popup) window then you need JavaScript.

    Code:
    window.open("http://www.dynamicdrive.com/","my_window_name","height=300,width=500,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes");
    if you look at the open function you can see that 3 parameters are passing into the function

    1. The url which you want to open.

    2. New window name

    3. Window configuration values (optional)

    For more details about the configuration items you can visit the following

    http://developer.mozilla.org/en/docs/DOM:window.open

    Probable Solution

    Code:
    <a href="#" onclick="javascript: loadPage('stormnews.php');"><img src="images/read3.jpg" border="0" /></a>
    
    <script type="text/javascript">
    function loadPage(url){	        window.open(url,"my_window","height=300,width=500,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes");
    }
    </script>
    You can change the window configuration parameter based on your requirement.
    Last edited by codeexploiter; 02-01-2008 at 08:06 AM. Reason: additional information

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
  •