SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 39 of 39
  1. #26
    SitePoint Zealot jammo's Avatar
    Join Date
    Dec 2003
    Location
    el paso tx
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by beetle
    i did a small change to the *.js file.

    on line 47
    Code:
    writeln('<body onload="self.focus();"><img id="pic" style="display:none" /></body></html>');
    i changed it to this:
    Code:
    writeln('<body onload="self.focus();"><img onClick="javascript:window.close();" id="pic" style="display:none" /></body></html>');
    and it works perfect!

    thank you!

  2. #27
    Anonymous
    SitePoint Community Guest
    Great Script! I had been looking for some time for a simple script that does exactly what this does. I will now make it dynamic and all is complete!
    Thanks

  3. #28
    Anonymous
    SitePoint Community Guest
    Straight ahead and touchdown - very good script!!!

  4. #29
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, I'll give this another shot. Cute new name, too.

    PicUp.js
    [zip coming]
    Attached Files Attached Files
    Last edited by adios; May 21, 2004 at 13:05.
    ::: certified wild guess :::

  5. #30
    Anonymous
    SitePoint Community Guest
    WONDERFULL SCRIPT ! ! ! !

  6. #31
    Anonymous
    SitePoint Community Guest
    Seems to be a bit iffy for IE on the mac. Seems to go a bit wide.

  7. #32
    Anonymous
    SitePoint Community Guest
    What if you want to have other elements in the popup.htm page, such as a border, or some text? I alctually have a picture frame in mine and the window resizes too small - could that be because I am including other images?

  8. #33
    Anonymous
    SitePoint Community Guest
    Very good

    Thanks

  9. #34
    Anonymous
    SitePoint Community Guest
    a GREAT script! I have been looking for a way to do this exact thing for a week now! Thank you very much!

  10. #35
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Slovenia
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First at all congrat for this scipt becouse it's just great. I have one question and would be realy greatful if you help me.

    How to make this scripts with etc. 50px margin on widht and height of the picture? I tried to insert in Body code but then window doesn't resize right.


    Please if you didn't understand me ask me one more, becouse I realy need this modification.

  11. #36
    SitePoint Enthusiast FreakyStyley's Avatar
    Join Date
    May 2005
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Warning! You are replying to a thread which is more than 34 months old."

    ...and still a great bit of scripting.

    can't believe I didn't see this one before! that "PicUp.js" is just sweet!

  12. #37
    SitePoint Enthusiast FreakyStyley's Avatar
    Join Date
    May 2005
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone know what I need to change in the PicUp.zip (post#29) to make it act as pop-up (new window) and centered by default? without using/including the options.

    cheers

  13. #38
    SitePoint Evangelist SpaceFrog's Avatar
    Join Date
    Jan 2005
    Location
    Outerspace
    Posts
    511
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    for popup centering here is a liitle code for a fixed dimension popup..;
    I let you adapt it for the resized one, just need to change variables and launch this script after the resizing one...

    PHP Code:
    <script language="JavaScript">
    var 
    popup window.createPopup() 
    var 
    popupBody popup.document.body 
    popupBody
    .style.border "solid 2px black"
    popupBody.style.padding "5px" 
    popupBody.innerHTML "Here is some text in a popup window"
    var hauteur=(screen.height/2)-50;
    var 
    largeur=(screen.width/2)-200;
    popup.show(hauteur,largeur20050document.body
    </script> 

  14. #39
    SitePoint Enthusiast
    Join Date
    Jun 2003
    Location
    Sweden
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Uhh... is there an updated cross-browser version of this script anywhere? It doesn't work at all in Firefox 1.5 and in IE6 (win) it just resizes horizontally.


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
  •