Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Jan 2007
    Posts
    54
    Plugin Contributions
    0

    help question Help with HTML code in product description

    Hi!
    I need help putting some html code in my product descriptions.. I want to be able to allow a customer to click on a link in the description and have that link open a new window without the address bar in it.. Here is an example of what I am needing to do:

    http://www.eyefunkdesigns.com/picket...ate-p-220.html Where it says "Click here to view Design". it opens the the link in a new window and also uses an image to do so. Can someone help me do this??
    I make templates like her and want to make it a little harder for someone to steal my coding!!

    Thanks for any help!!
    Andrea Nelson

  2. #2
    Join Date
    Mar 2007
    Location
    Seattle, WA
    Posts
    159
    Plugin Contributions
    0

    Default Re: Help with HTML code in product description

    The link that you are trying to emulate uses JavaScript, not HTML to acheive that affect. You can find details on the function that is used here:
    http://www.pageresource.com/jscript/jwinopen.htm
    The anti-right click is also Javascript.

  3. #3
    Join Date
    Jan 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Help with HTML code in product description

    ok here is what I put in the description box:
    <FORM>
    <INPUT type="button" value="CLICK FOR WORKING TEMPLATE!" onClick="window.open('http://www.andreanelsondesigns.com/boutique/ebayauctiontemplates/FlowerChildTemplate.html','mywindow',toolbar=no)">
    </FORM>

    Here is a link to it: http://andreanelsondesigns.com/bouti...roducts_id=146

    It is showing all of that information I put in..
    I want to be able to allow my customers to click a link and open the window in a browser without the address/tool bar.

    Any ideas how I would put this in my decription??
    Last edited by mikenandrea; 8 Jan 2008 at 09:11 PM. Reason: added a link to my store for ex.

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Help with HTML code in product description

    This should work.

    <form>
    <input type="button" value=" View Template " onclick="window.open('http://www.andreanelsondesigns.com/boutique/ebayauctiontemplates/FlowerChildTemplate.html','mywindow','menubar=0,resizable=1,width=780,height=590 ,toolbar=no')">
    </form>

    You should also resize your Template(s) to use 780x590 dimensions. This will allow people using an 800x600 screen size to see the whole thing, without having to scroll from side to side.

    If the above JS code doesn't work, you will have to escape the single quotes.

    onclick="window.open(\'http://www.andreanelsondesigns.com/boutique/ebayauctiontemplates/FlowerChildTemplate.html\',\'mywindow\',\'menubar=0,resizable=1,width=780,height =590,toolbar=no\')"

  5. #5
    Join Date
    Jan 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Help with HTML code in product description

    I got the second code to work but it isnt showing the button? Is there a way to make that button be an image. I was trying to use this image: http://www.andreanelsondesigns.com/b...iew_design.gif
    What would the code for that be?
    Last edited by mikenandrea; 8 Jan 2008 at 10:06 PM.

  6. #6
    Join Date
    Jan 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Help with HTML code in product description

    Also, it is not allowing me to scroll in the box. Should I also add scroll=yes or something like that?

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Help with HTML code in product description

    Change

    from: type="button"

    to: type="submit"

  8. #8
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Help with HTML code in product description

    Change

    from: menubar= 0,resizable=1,width=780,height=590,toolbar=no

    to: scrollbars=yes,menubar=0,resizable=1,toolbar=no,width=780,height=590


    If you are seeing this wi dth it should be all one word.
    Seems to be a bug in the Forum script that's separating it.

  9. #9
    Join Date
    Jan 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Help with HTML code in product description

    that worked but when i closed out that screen, it took the user to a different screen than before. Here is the code I used:

    <form>
    <input type="submit" value=" View Template " onclick="window.open(\'http://www.andreanelsondesigns.com/boutique/ebayauctiontemplates/FlowerChildTemplate.html\',\'mywindow\',\'menubar= 0,resizable=1,width=780,height=590,scrollbar=yes,toolbar=no\')">
    </form>

    It didnt add the scrollbars so that people can scroll the page.

  10. #10
    Join Date
    Jan 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Help with HTML code in product description

    Updated code:

    <form>
    <input type="submit" value=" View Template " onclick="window.open(\'http://www.andreanelsondesigns.com/boutique/ebayauctiontemplates/FlowerChildTemplate.html\',\'mywindow\',\'menubarscrollbars=yes,menubar=0,resiza ble=1,toolbar=no,width=780,height=590
    \')">
    </form>


    Still no scrollbars and the customers are being redirected upon clicking link?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. HTML code appearing in Product description
    By irishshopper in forum Basic Configuration
    Replies: 3
    Last Post: 11 Jul 2011, 12:55 AM
  2. Replies: 4
    Last Post: 8 Nov 2010, 10:30 AM
  3. HTML code in Product Description
    By irishshopper in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Apr 2010, 01:51 AM
  4. Add product html form code On Product Description page
    By ivogue in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 4 Mar 2009, 07:54 PM
  5. strange html code in product description
    By nilsen in forum General Questions
    Replies: 0
    Last Post: 31 Jan 2009, 11:09 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR