Announcement

Collapse
No announcement yet.

Simple Link

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Simple Link

    On the "Simple link" tab in Products , I have a link that opens in a different window
    www.amazon.com "target="_blank
    how can I make that page to be smaller, like 400 by 400? rather than full size!!!

    #2
    I dont think you can do that.

    Comment


      #3
      The File / URL field unfortunately won't let you type in a JavaScript URL which would do the job e.g.

      javascript:ShowPopUp('http://news.bbc.co.uk',400,400)

      but here's how to embed it into the Full Description

      !!<<a href="javascript:ShowPopUp('http://news.bbc.co.uk',400,400)">Here is the News</a>>!!

      Use this instead and abandon the Links tab.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        My js is non-existant - what do I need in the <head> to support this showpopup function?

        Duncan R

        Comment


          #5
          It is probably already there as it is handled by either actiniccore.js or actinicextras.js


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            If I use this js as above I get error on page..even when I just make a simple html page in site1 as:

            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/html4/loose.dtd">
            <html>
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <title>Untitled Document</title>
            <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
            <SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>
            </head>
            <a href="javascript:showPopup('http://news.bbc.co.uk',500,600)">Page Title To Link To</a>
            <body>
            </body>
            </html>

            - any ideas what i'm doing wrong please?

            Note: FF JS console shows showpopup as not defined.

            Duncan R

            Comment


              #7
              Duncan - Norman is showing how it works when embedding into product description or fragments .. if you are hardcoding into the HTML template you will need to declare it as a <script> first


              Bikster
              SellerDeck Designs and Responsive Themes

              Comment


                #8
                I put it in a description first and had the same problem. So I thought I'd simplify the product page to try and find the what's causing it.

                I'll have another go tomorrow. I see that showpopup is defined in actinic.js so it should work.

                It's been a long day - it's probably me.

                Duncan R

                Comment


                  #9
                  Sorted!

                  ShowPopUp is case sensitive! (I had showPopup)

                  Duncan R

                  Comment


                    #10
                    I have copied and pasted the code "as is" into a product description and it opened fine - if a little on the small size to read the news


                    Bikster
                    SellerDeck Designs and Responsive Themes

                    Comment

                    Working...
                    X