WordPress.org

Ready to get started?Download WordPress

Forums

Open a Pop up (2 posts)

  1. KaIrOs
    Member
    Posted 9 years ago #

    I don't know and I ask to you if someone could explin me how I can open a pop up on click over an image that I've put in a post.

    Post -> Small size image -> On click -> Open a Large size image in a pop up

    Thank you

  2. ILostMyDream
    Member
    Posted 9 years ago #

    It's just javascript that you add to your post's in HTML. Here is an example:

    <a href="#" /><br />
    'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=480,height=640');"><img src="imagethumb1.jpg"></a>

    ~replace image.htm with the the link of your image page or jpg.

    ~If you want scrollbars etc change the value 0 to a 1.
    ~under imagetitle change it to the name of your popup so if you have a bunch they don't get confused.
    ~ change imagethumb1.jpg to the name of your small image.

    I would also suggest not just linking to an image in the popup because you'll have annoying margins... but putting the image into an HTML page. Just make sure you add this to your body tag in the image's html page:

    <BODY leftMargin=0 topMargin=0>

    Also just another interesting thing is if you want to close your popup window use this code:

    <a href="#" onClick="window.close('01.htm');"> close me!</a>
    :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.