Skip to main content

Reply to "Image Borders & Supersize Questions"

Hi,

Here's a script you can test for dynamically adding the href with query string to call the Auctiva server for the supersize page. With this script you can add up to the 24 images and use the single page image as the anchor to call the supersize page for display of all (as you suggested). I would add some type of language to the text under the main image, indicating there are more images with the click. Note, I updated the code with your account ID for the GID ref.



<!--Example code for anchor and image -->
<a target="_blank"><img src="[IMAGE1_URL]" alt="" onmouseover="getQ(this);" /></a>



<script type="text/javascript">
<!--/* Freeware Script for Auctiva Supersize Images Anchor-linked page by ClixTrix Design Studio LLC */
var urlQ;
var qsGID = '1155031'; /* Replace with your Auctiva 5+ Digit Account # */
function getQ(i) {
i.parentNode.href = urlQ.substr(0, 72 + qsGID.length) +
i.src.substr(i.src.length - 15, 9) + urlQ.substr(81 +
qsGID.length, urlQ.length - (81 + qsGID.length));
}
function qsBuild() {
var image, images, formats;
for (var i = 0; i < qsBuild.arguments.length; i++) {
if (qsBuild.arguments[i].length > 0) {
if (i == 0) {
images = image = qsBuild.arguments[0].substr(qsBuild.arguments[0].length - 15, 9);
formats = '0';
}
else {
images = images + ',' + qsBuild.arguments[i].substr(qsBuild.arguments[i].length - 15, 9);
formats = formats + ',0';
}
}
}
urlQ = 'http://www.auctiva.com/hostedimages/showimage.aspx?gid='
+ qsGID + '&ppid=1122&image=' + image + '&images=' + images + '&formats=' + formats + '&format=0&lgdin=1';
}
qsBuild('[IMAGE1_URL]', '[IMAGE2_URL]', '[IMAGE3_URL]', '[IMAGE4_URL]', '[IMAGE5_URL]', '[IMAGE6_URL]',
'[IMAGE7_URL]', '[IMAGE8_URL]', '[IMAGE9_URL]', '[IMAGE10_URL]', '[IMAGE11_URL]', '[IMAGE12_URL]',
'[IMAGE13_URL]', '[IMAGE14_URL]', '[IMAGE15_URL]', '[IMAGE16_URL]', '[IMAGE17_URL]', '[IMAGE18_URL]',
'[IMAGE19_URL]', '[IMAGE20_URL]', '[IMAGE21_URL]', '[IMAGE22_URL]', '[IMAGE23_URL]', '[IMAGE24_URL]');
//-->
</script>
Last edited by danno
Copyright © 1999-2018 Auctiva.com. All rights reserved.
×
×
×
×