...

printing images by code

stryper
04-04-2003, 09:11 PM
so then how can i print images using javscript code or other code..

ConfusedOfLife
04-04-2003, 10:09 PM
The only way that comes to my mind is to open it in a new blank window and then use window.print() to print it. I never saw a special function/way for printing an image in JS.

missing-score
04-05-2003, 09:27 AM
This will not work in NS4 as far as I know...

<link rel="alternate" media="print" href="printthis.txt" />

You want to print images. I think you could just change the href to something like, myimage.gif.

If that doesn't work, do what ConfusedOfLife suggested.

ConfusedOfLife
04-05-2003, 10:57 AM
Can you make that link dynamically too? I mean if I have a button on the page and then I click on it, it starts printing it not when the document is loading?

missing-score
04-05-2003, 12:08 PM
Im sure I saw something on dynamic drive once, about choosing a document to print.

If I find it I will post back.

mattover-matter
04-05-2003, 03:12 PM
you mean this? (http://www.dynamicdrive.com/dynamicindex9/other1.htm) or,this? (http://www.dynamicdrive.com/dynamicindex9/printstyle.htm)



:D

beat you

bazz
04-05-2003, 04:27 PM
yeh matt the second one is good. I found it a couple of days ago when looking for another script which I still cant find.

The only down side is that I have to add it to stacks of pages - o and make the printversion.doc as well :( . Just when I thought I had finished. :rolleyes:

missing-score
04-05-2003, 05:43 PM
Im sure there was another one. maybe it wasnt on DD.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum