Raw HTML help - thunbnails to images?
#2
Scooby Senior
Thread Starter
Join Date: Feb 2000
Location: West Midlands
Posts: 5,763
Likes: 0
Received 0 Likes
on
0 Posts
Reading my own question, is there some way of doing a <BLOCKQUOTE><font size="1" face="Verdana, Arial">code:<HR><pre><a href="BOOMER_PICTURE_TEMPLATE.HTML/with_image=Dscf0179f.jpg"</pre><HR></BLOCKQUOTE>
sort of thing???
sort of thing???
#3
Scooby Regular
Join Date: Mar 1999
Location: Essex
Posts: 1,681
Likes: 0
Received 0 Likes
on
0 Posts
Nope, not in pure html.
Since I don't know what scripting languages you can use on that account, the quickest way I can think of is to make the href tag point to some javascript which will open the pic for you. You can do this in a separate window using document.writes.
Dont think that helps much with the counter though !
Have a look at
Since I don't know what scripting languages you can use on that account, the quickest way I can think of is to make the href tag point to some javascript which will open the pic for you. You can do this in a separate window using document.writes.
Dont think that helps much with the counter though !
Have a look at
#4
Scooby Regular
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes
on
0 Posts
This is your link...
<a href="javascript:Start('images/back2.jpg', 420, 300);"><img src="images/thumb_back2.gif" width="75" height="40" border="0"></a>
stick this in the <head> section...
<SCRIPT LANGUAGE="JavaScript">
timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);
text = "<html><head><title>Preview& lt;/title></head><body bgcolor='white'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
text += "><center><img src='" + URL + "'>";
if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";
text += "</center></body></html>";
preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
</script>
<a href="javascript:Start('images/back2.jpg', 420, 300);"><img src="images/thumb_back2.gif" width="75" height="40" border="0"></a>
stick this in the <head> section...
<SCRIPT LANGUAGE="JavaScript">
timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);
text = "<html><head><title>Preview& lt;/title></head><body bgcolor='white'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
text += "><center><img src='" + URL + "'>";
if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";
text += "</center></body></html>";
preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
</script>
#5
Scooby Senior
Thread Starter
Join Date: Feb 2000
Location: West Midlands
Posts: 5,763
Likes: 0
Received 0 Likes
on
0 Posts
Lee and Fosters,
thanks for the code and pointers - i'll have a play. I guess that this could get quite complex however - do i open a fresh window each time, or can i re-use a single one; how do i handle a right-click/openinanewwindow etc.
Cheers,
mb
thanks for the code and pointers - i'll have a play. I guess that this could get quite complex however - do i open a fresh window each time, or can i re-use a single one; how do i handle a right-click/openinanewwindow etc.
Cheers,
mb
Thread
Thread Starter
Forum
Replies
Last Post
shorty87
Full Cars Breaking For Spares
19
22 December 2015 11:59 AM