hell thats not my code, I pulled a will & stole it!

I will try that though, thanks for the effort :)

~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 10:32 PM
To: CF-Talk <[email protected]>
Subject: RE: js popup ? damn that ie!!!!! 

Well, now that I've posted all kinds of code... I actually don't see a
problem with your original code in IE other that I believe you may have been
calling the FitPic() to early... This works.

 var arrTemp=self.location.href.split("?");

 // var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
 var picUrl =
'http://65.36.226.10/images/reelcolors/canyon/CanyonBigGame_front_gold.jpg';

 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();
 };

marginwidth="0"> 

document.write( "" ); 
FitPic();

...:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 22, 2005 10:05 PM
To: CF-Talk
Subject: RE: js popup ? damn that ie!!!!!

Ehhh here it is for the entire world to enjoy and marvel in its magnificence
and extreme complexities... lol

It's so complex I didn't even remember how to use it (and I wrote it lol)
Its not a tag... it's a function...duh

So you would use this instead of the previous customtag syntax
#bhimginfo(images[i])#

Then you'd have the whole bhimageinfo structure to play with.

Ps... bhImageInfo.width should be bhImageInfo.ImgWidth in the previous
message (same with height)

/*
Filename : bh_imageinfo.cfm
Date Created : 04-23-2005
Author : Bobby Hartsfield | [EMAIL PROTECTED]
Description : This is an image function to read basically any and
all attributes of an image file.
 The majority of the returned information is
commented out because in most cases
 I have had no need for anything other than
the basics (ie. height, width, file size, etc..)

 Feel free to use or modify it however you
see fit. Just because I typed the keys
 doesn't mean I own that particular sequence
of keys!
*/
function bhimginfo(imgfile){
 jFileIn = createObject("java","java.io.File").init(imgfile);
 ImageInfo = StructNew();
 ImageObject =
createObject("java","javax.imageio.ImageIO").read(jFileIn);

 imageFile = CreateObject("java", "java.io.File"); 
 imageFile.init(imgfile); 
 sizeb = imageFile.length(); 
 sizekb = numberformat(sizeb / 1024, "999999999.99");
 sizemb = numberformat(sizekb / 1024, "99999999.99");

 bhImageInfo = StructNew();
 bhImageInfo.ImgWidth = ImageObject.getWidth();
 bhImageInfo.ImgHeight = ImageObject.getHeight();
 bhImageInfo.SizeB = sizeb;
 bhImageInfo.SizeKB = sizekb;
 bhImageInfo.SizeMB = sizemb;

// You can get much more info from the file that you may or may not find
useful. 
// Just uncomment any of the sets below to see what goodies turn up

// Just cfdump bhImageInfo to see the results

// bhImageInfo.ImageFormat = ListLast(ListLast(imgfile, "\"), ".");
// bhImageInfo.ImgtoString = ImageObject.toString();
// bhImageInfo.ImggetType = ImageObject.getType();
// bhImageInfo.ImggetData = ImageObject.getData();
// bhImageInfo.ImggetPropertyNames = ImageObject.getPropertyNames();
// bhImageInfo.ImggetGraphics = ImageObject.getGraphics();
// bhImageInfo.ImggetColorModel = ImageObject.getColorModel();
// bhImageInfo.ImggetMinTileX = ImageObject.getMinTileX();
// bhImageInfo.ImggetMinTileY = ImageObject.getMinTileY();
// bhImageInfo.ImggetMinX = ImageObject.getMinX();
// bhImageInfo.ImggetMinY = ImageObject.getMinY();
// bhImageInfo.ImggetNumXTiles = ImageObject.getNumXTiles();
// bhImageInfo.ImggetNumYTiles = ImageObject.getNumYTiles();
// bhImageInfo.ImggetSampleModel = ImageObject.getSampleModel();
// bhImageInfo.ImggetSources = ImageObject.getSources();
// bhImageInfo.ImggetTileGridXOffset =
ImageObject.getTileGridXOffset();
// bhImageInfo.ImggetTileGridYOffset =
ImageObject.getTileGridYOffset();
// bhImageInfo.ImggetTileHeight = ImageObject.getTileHeight();
// bhImageInfo.ImggetTileWidth = ImageObject.getTileWidth();
// bhImageInfo.ImgcreateGraphics = ImageObject.createGraphics();
// bhImageInfo.ImggetRaster = ImageObject.getRaster();
// bhImageInfo.Imghashcode = ImageObject.hashCode();
}

....:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 22, 2005 9:51 PM
To: CF-Talk
Subject: RE: js popup ? damn that ie!!!!!

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....

Then loop over that to output the images and run them through a image tag...

popup('#request.homepage#/images/reelcolors/canyon/#images[i]#',
'#bhimageinfo.width#', '#bhimageinfo.height#');return false;>my image

(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....

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');
}

If your interested in my tag let me know and ill send it your way.

.....:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.5/177 - Release Date: 11/21/2005



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:225061
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to