Web Analytics Made Easy -
StatCounter Problem in Gallery - CodingForum


No announcement yet.

Problem in Gallery

  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem in Gallery

    I have built the photo gallery in which when a user clicks on a thumbnail the image popups at the same page and when cliks again on any thumbnail it closes. Now the question is
    Question: Is there any way that we show the text describing that image which is popuped?
    If it is then please guide me what to do

  • #2
    Could you provide a link to the code? Can't do much without seeing the code first.


    • #3
      If you are developing your website in html then u must use _blank along with href. your link would be something like this.

      <a href="www.yourdomain/images/thumb1.jpg" target="_blank"><img border="0" src="www.yourdomain/images/pic1.jpg" width="128" height="25"></a>

      href = link where your tumbnail is saved.
      thumb1.jpg = name of thumbnail (image)
      target="_blank" = pops a new window
      scr = source where you actuall picture is saved
      pic1 = name of actuall image you want to pop in a new window

      the above code will only pops an image in a new window. If you want to add text in it then u have to create html page for it and replace the code like this

      <a href="www.yourdomain/images/thumb1.jpg" target="_blank"><img border="0" src="www.yourdomain/images/pic1.html"></a>

      pic1.html = page where you actuall image along with text is saved.

      hope so this will might help you. wish you best of luck

      [email protected] [email protected]
      Don't click on this!