Ehhh... that was my quick and easy solution heh.
You can put the images into a query object, array or structure...so you can
loop them out into links or just call them easily and run them through an
image tag (I have one I'd send you that only grabs basic info like width and
height... which is all you need here but it gets some other stuff as well.)
So something like....
<cfset images = arrayNew(1) />
<cfset arrayappend(images, "image1.jpg") />
<cfset arrayappend(images, "image2.jpg") />
<cfset arrayappend(images, "image3.jpg") />
<cfset arrayappend(images, "image4.jpg") />
<cfset arrayappend(images, "image5.jpg") />
<cfset arrayappend(images, "image6.jpg") />
Then loop over that to output the images and run them through a image tag...
<cfloop from="1" to="#arraylen(images)#" index="i">
<bh_ImageInfo file="#path#\#images[i]#" />
<a href="javascript:void(0);" onclick="
popup('#request.homepage#/images/reelcolors/canyon/#images[i]#',
'#bhimageinfo.width#', '#bhimageinfo.height#');return false;>my image</a><br
/>
</cfloop>
(or you could output them manually, with #Images[1]#, #images[2]#, etc...
where ever you needed them and just run the imagetag just before it.)
....and the js....
<script type="text/javascript">
function popImg(url, w, h)
{
NewWindow=window.open(url,'Title','width=' + w + ',height=' + h +
',left=400,top=200,toolbar=No,location=No,scrollbars=No,status=No,resizable=
No,fullscreen=No');
}
</script>
If your interested in my tag let me know and ill send it your way.
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: dave [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 9:20 PM
To: CF-Talk
Subject: RE: js popup ? damn that ie!!!!!
because I don't know a way to do each one seperately without adding a new
function for every photo, since they are different sizes.
I'm hand putting them in so I shouldn't need any image manipulation tags.
you have anything quick and easy?
~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/
----------------------------------------
From: "Bobby Hartsfield" <[EMAIL PROTECTED]>
Sent: Tuesday, November 22, 2005 8:59 PM
To: CF-Talk <[email protected]>
Subject: RE: js popup ? damn that ie!!!!!
I haven't been through your JS yet, figured id offer an option. If you are
just displaying an image, could you not just get the height and width of the
image and use that for the height and width of the popup call?
I use imagecr3 to do just that on occasion. That, of course will only work
if you only want to display an image and don't mind the margins.
I'll take a look at your js in a bit if you don't want to do that.
....:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: dave [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 8:47 PM
To: CF-Talk
Subject: js popup ? damn that ie!!!!!
trying to utalize a self sizing popup window, see it here:
http://65.36.226.10/content/reelspecs.cfm on available colors.
works everywhere but ie of course
code is:
head section:
function PopupPic(sPicURL) {
window.open( "popup.cfm?"+sPicURL, "",
"resizable=1,HEIGHT=200,WIDTH=200");
}
link:
javascript:PopupPic('#request.homepage#/images/reelcolors/canyon/CanyonBigGa
me_Front_Black.jpg')" >
popup page:
var arrTemp=self.location.href.split("?");
var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
var NS = (navigator.appName=="Netscape")?true:false;
function FitPic() {
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight;
iWidth = document.images[0].width - iWidth;
iHeight = document.images[0].height - iHeight;
window.resizeBy(iWidth, iHeight);
self.focus();
};
marginheight="0" leftmargin="0" marginwidth="0">
document.write( "" );
Is it possible to work in ie or should i just get made, piss and moan,
scream, kick things and flip bill the bird?
~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225047
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54