Jump to content

Pop Ups for add on pages


Guest

Recommended Posts

I know we have the javascript library that has this in it - but I need a different style of popup for a friends site than what is available there - I need to be able to control it and I looked the code and really can't "add it" because I know that would require doing even more "function" wise - and I'm REALLY trying to keep from doing anything so intensive it would mess up CC Updates.

That being said, I took the script that I have been using on his site from his homepage because it was written especially to do what I need --

http://www.specializedsaddles.com/ordersho...iewDoc&docId=13

I'm a little annoyed because I didn't think this would happen as the code is simple

<a href="javascript:Start('http://www.specializedsaddles.com/images/EliteIntMaroon350.jpg', 350, 506)"><img src="http://www.specializedsaddles.com/images/EliteIntMaroon180.jpg" width="180" height="260" border="0"></a>
  for example - 

but in order for it to work this has to be in the index.tpl template


<script language="JavaScript">    

<!-- Begin    

  

var preview;    

function Start(URL, WIDTH, HEIGHT) {    

windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);    

    

text = "<html><head><title>Preview</title></head><body bgcolor='white'";    

text += "><center><img src='" + URL + "'>";     

text += "</center></body></html>";    

  

if (preview) preview.close();  

preview = window.open("", "preview", windowprops);    

preview.document.open();    

preview.document.write(text);    

preview.document.close();    

}    

//  End -->    

</script>

Okay - it works - however! each picture pop up has the CubeCart copyright on it -- which I would like not to happen (on these popups - not asking to remove the copyright)

Any ideas??

Thanks so much!

Link to comment
Share on other sites

  • 5 months later...

Hi sorry its some time away but this is just what i am looking for on my pics just like your site ( which is very good by the way i like it clear and straight forward)

I do have the pop up scritp from an old site but i am trying to implement this to just when customer clicks on my pics they pop up larger , just like yours.

i do have an old script form old site if any one can point me in the right direction please?

<script language="JavaScript">

<!--



function popup(imageFile) {

	imgFile = 'largedisplay.asp?/justpottery/images/products/' + imageFile;

	window.open(imgFile, "largeview", "resizable=1,top=5,left=5,width=200,height=200,scrollbars=1");

}



function setButton(s) { 

	document.productpage.itemselected.value = s; 

} 



// -->

</script>

Will this script work or is there a better way ?

many thanks

Craig

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...