Linking text to pic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • makingreatstuff
    Sergeant First Class

    • Jan 2007
    • 50

    Linking text to pic

    Is there a way to link text to a pic that will make the pic open in a pop up window. I know about target to blank from the link hypertext button but I want the pic to open in a separate pop up box like pics in the gallery.......

    thanks
    Hello all!!!
    thanks for helping!
    www.makingreatstuff.com
  • Beebee
    Staff Sergeant

    • Jan 2007
    • 43

    #2
    Re: Linking text to pic

    I am wondering the same myself!

    Comment

    • Collectors-info
      General

      • Feb 2006
      • 8703

      #3
      Re: Linking text to pic

      Hi, change the link url in the code below to your pictures url & the 600’s to the size of your image. The 50 controls the space from the top of the page.
      Highlight the text you want to link from, select hyperlink & paste this in the url field.
      Remove any text from the url box before you paste this in. IE: http://

      #" onClick="window.open('http://www.yourdomain.com', '','width=600,height=600,top=50'); return false;"

      Good luck.

      Ps. If you don’t want the links underlined. Paste this into the head of your page. But It will stop all underlining.

      <style>
      <!--
      a{text-decoration:none}
      //-->
      </style>
      Regards Chris.

      Collectables, Collecting, collectors-info.com

      www.chrismorris.co.uk

      House build project

      Comment

      • makingreatstuff
        Sergeant First Class

        • Jan 2007
        • 50

        #4
        Re: Linking text to pic

        thanks for the info but I can't get it to work///////////////////////////grrrr/ lol. I think I am following your directions to the letter.

        What happens is the text disapears and the other text boxes shift........weird

        what do you think

        here is my page i am working on
        www.makingreatstuff.com/sports.html

        thanks???
        Hello all!!!
        thanks for helping!
        www.makingreatstuff.com

        Comment

        • Collectors-info
          General

          • Feb 2006
          • 8703

          #5
          Re: Linking text to pic

          Hi, my apologies! Its seems to work once & the make the text disappear!

          This one works but using java.
          Paste this 1st bit of code into "between head" on your page.
          If you are not sure (Right click on empty part of your BV page & select page html) then select the Between head tag & paste it here)



          <SCRIPT LANGUAGE="JavaScript">
          <!-- Begin
          function popUp(URL) {
          day = new Date();
          id = day.getTime();
          eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=1,width=800,height=600,left = 162,top = 84');");
          }
          // End -->
          </script>




          Paste this 2nd part of the code into an html box & replace the url with your own & change the pop 1 to the text you would like. If you want more pop ups on the same page! Just duplicate the 2nd part only.



          <A HREF="javascript:popUp('http://www.collectors-info.com')">pop 1</A>



          Onece again sorry about the 1st post (I should of tested more)

          Good luck.
          PS. tested at this link, bottom of page http://www.collectors-info.com/testi...genorator.html
          Regards Chris.

          Collectables, Collecting, collectors-info.com

          www.chrismorris.co.uk

          House build project

          Comment

          • makingreatstuff
            Sergeant First Class

            • Jan 2007
            • 50

            #6
            Re: Linking text to pic

            I'm going to dive into it later this am.......a little overwelming.........thannks so much
            I will let you know
            Hello all!!!
            thanks for helping!
            www.makingreatstuff.com

            Comment

            • makingreatstuff
              Sergeant First Class

              • Jan 2007
              • 50

              #7
              Re: Linking text to pic

              Hey I couldn't wait to try it. So before breakfast, coffee, meds, lol, tried it and It works!!!!!!!!!!

              Now it's time for waffles and then back to work.........thanks Chris.

              Are those pop up able to be titled? or is that going to far?

              Beth
              Hello all!!!
              thanks for helping!
              www.makingreatstuff.com

              Comment

              • Collectors-info
                General

                • Feb 2006
                • 8703

                #8
                Re: Linking text to pic

                I think the only way round this is to put each picture on its own page & put some text under the image. At least you will be able to add a lot more info to each picture this way.
                If you do it this way remember to place the image top left of page & don’t centre it.
                Or maybe 20mm in from each edge to give a small boarder.
                Regards Chris.

                Collectables, Collecting, collectors-info.com

                www.chrismorris.co.uk

                House build project

                Comment

                • makingreatstuff
                  Sergeant First Class

                  • Jan 2007
                  • 50

                  #9
                  Re: Linking text to pic

                  That is what I did before. East link opened up a new page but I just don't like the look of it as well as the popup's neat little framed popup. Thanks Chris. I'm sure I will be writing again.
                  Beth
                  Hello all!!!
                  thanks for helping!
                  www.makingreatstuff.com

                  Comment

                  Working...
                  X