Page 2 of 23 FirstFirst 123412 ... LastLast
Results 11 to 20 of 221
  1. #11
    Join Date
    Apr 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Ok, I think I narrowed it down. I'm getting this error:

    Code:
    Error: popImage is not defined
    Source File: javascript:popImage('images//medium/attributes/crownheartskull-ts-grey_MED.jpg', 'Large View')
    Line: 1
    I don't see popImage defined in either of our page sources. Where should popImage be defined?

  2. #12
    Join Date
    Apr 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Oh, SNAP! Let's take it back to the basics

    Code:
    -rw-------  1 xmxbx pg509405 2390 Mar 15 08:19 jscript_dynamic_window_popup.js
    The javascript file thinger didn't have read permissions. It works now!

  3. #13
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: attribute pop up images

    I'm glad you got it working!
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

  4. #14
    Join Date
    Feb 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Thank you so much, that truly is a great addition and very well explained!

    I am wondering... my pop up window is about 1 inch by 2 inches and I can only see the corner of my enlarged picture. I am unable to make the pop up window any bigger either by pressing the button in the right corner or the resize option. I am not sure if this is a setting in the zen cart or if it is a setting in my browser. I tried to open and resize it on 2 different computers. Anyone had this problem before?

  5. #15
    Join Date
    Apr 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Quote Originally Posted by etal2000 View Post
    I am wondering... my pop up window is about 1 inch by 2 inches and I can only see the corner of my enlarged picture. I am unable to make the pop up window any bigger either by pressing the button in the right corner or the resize option. I am not sure if this is a setting in the zen cart or if it is a setting in my browser. I tried to open and resize it on 2 different computers. Anyone had this problem before?
    Probably has to do with how the window is generated:

    from: /includes/templates/my_template/jscript/jscript_dynamic_window_popup.js

    Code:
    // Do not edit below this line...
    // ================================
    if (parseInt(navigator.appVersion.charAt(0))>=4){
    var isNN=(navigator.appName=="Netscape")?1:0;
    var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
    var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
    var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
    function popImage(imageURL,imageTitle){
    if (isNN){imgWin=window.open('about:blank','',optNN);}
    if (isIE){imgWin=window.open('about:blank','',optIE);}
    with (imgWin.document){
    writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
    writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
    writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
    writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
    writeln('width=100-(document.body.clientWidth-document.images[0].width);');
    writeln('height=100-(document.body.clientHeight-document.images[0].height);');
    writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
    writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
    writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
    if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
    else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
    writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
    close();

  6. #16
    Join Date
    Feb 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Thank you so much. You are right, the script set the pop up window at 100x150. It works great now!

  7. #17
    Join Date
    Apr 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Lucky guess!

  8. #18
    Join Date
    Jan 2007
    Posts
    143
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Would this work on my attributes?
    What I'm trying to do is have a small popup box popup next to the attributes.

    My Link
    http://www.anythingframed.co.uk/inde...roducts_id=184
    Last edited by Woody619; 17 Apr 2007 at 05:20 PM. Reason: No link

  9. #19
    Join Date
    Mar 2005
    Location
    Tulsa, Ok
    Posts
    174
    Plugin Contributions
    0

    Default Re: attribute pop up images

    Quote Originally Posted by quillowmania View Post
    Hello,
    if you'd like to check it out, please go to my website, www.quillowmania.com.
    The link will take you to the correct location to demo the attributes. Look towards the bottom of the page where it says "Select Bib Design"
    Above the image it says "Click to enlarge" and below the image you have it set up to say the product name/option value (for example "Spit Happens") instead of "Please choose". I'd like to do the same, either that or get rid of "Please choose" completely. How did you change yours?!
    Last edited by CelticKatt; 7 May 2007 at 10:22 PM.
    "You never really understand a person until you consider things from his point of view . . . until you climb into his skin and walk around in it." --Atticus

  10. #20
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Default Re: attribute pop up images

    I modified the script so that it now works using the corresponding images in the /images/large/ subdirectory rather than images/attributes/medium

    I did this because the 'large' directory already exists in the default zen cart set-up (I believe) AND I have already uploaded a significant number of the attributes 'large' images there!

    In this mod of the mod, the required large image 'suffix' follows the Zen cart convention i.e. image_name_LRG.xxx

    I hope that it may be of use to someone.
    Attached Files Attached Files

 

 
Page 2 of 23 FirstFirst 123412 ... LastLast

Similar Threads

  1. Pop up for attribute
    By chandroo007 in forum General Questions
    Replies: 0
    Last Post: 31 Jan 2011, 10:48 AM
  2. Attribute Pop-Up?
    By TurtleDove in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 24 Sep 2010, 05:22 AM
  3. Pop Up Images
    By crzy4prple in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Apr 2010, 06:37 AM
  4. attribute image pop up (large images)
    By kitcorsa in forum General Questions
    Replies: 12
    Last Post: 19 Sep 2008, 05:44 AM
  5. Adding a pop up window to an attribute
    By esoin in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Sep 2007, 02:19 AM

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