Notices
Non Scooby Related Anything Non-Scooby related

Raw HTML help - thunbnails to images?

Thread Tools
 
Search this Thread
 
Old May 22, 2001 | 09:11 PM
  #1  
boomer's Avatar
boomer
Thread Starter
Scooby Senior
 
Joined: Feb 2000
Posts: 5,763
Likes: 0
From: West Midlands
Question

My web-pages (at, for example
Reply
Old May 22, 2001 | 09:15 PM
  #2  
boomer's Avatar
boomer
Thread Starter
Scooby Senior
 
Joined: Feb 2000
Posts: 5,763
Likes: 0
From: West Midlands
Post

Reading my own question, is there some way of doing a <BLOCKQUOTE><font size="1" face="Verdana, Arial">code:<HR><pre>&lt;a href="BOOMER_PICTURE_TEMPLATE.HTML/with_image=Dscf0179f.jpg"</pre><HR></BLOCKQUOTE>

sort of thing???
Reply
Old May 23, 2001 | 07:34 AM
  #3  
Lee's Avatar
Lee
Scooby Regular
 
Joined: Mar 1999
Posts: 1,681
Likes: 0
From: Essex
Post

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
Reply
Old May 23, 2001 | 07:44 AM
  #4  
Fosters's Avatar
Fosters
Scooby Regular
 
Joined: Jul 2000
Posts: 2,145
Likes: 0
From: Islington
Post

This is your link...
&lt;a href="javascript:Start('images/back2.jpg', 420, 300);"&gt;&lt;img src="images/thumb_back2.gif" width="75" height="40" border="0"&gt;&lt;/a&gt;

stick this in the &lt;head&gt; section...
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
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 = "&lt;html&gt;&lt;head&gt;&lt;title&gt;Preview& lt;/title&gt;&lt;/head&gt;&lt;body bgcolor='white'";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "&gt;&lt;center&gt;&lt;img src='" + URL + "'&gt;";

if (timeout != 0) text +="&lt;br&gt;&lt;font face='arial, helvetica' size='-1'&gt;Preview closes after " + timeout + " seconds.&lt;/font&gt;";

text += "&lt;/center&gt;&lt;/body&gt;&lt;/html&gt;";

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
&lt;/script&gt;
Reply
Old May 23, 2001 | 11:57 PM
  #5  
boomer's Avatar
boomer
Thread Starter
Scooby Senior
 
Joined: Feb 2000
Posts: 5,763
Likes: 0
From: West Midlands
Talking

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
Reply
Old May 24, 2001 | 07:47 AM
  #6  
Fosters's Avatar
Fosters
Scooby Regular
 
Joined: Jul 2000
Posts: 2,145
Likes: 0
From: Islington
Post

On my code, you will open the same window on clicking another thumb.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
shorty87
Full Cars Breaking For Spares
19
Dec 22, 2015 11:59 AM
RAGGY DOO
General Technical
8
Sep 27, 2015 09:46 PM
B0DSKI
Non Car Related Items For sale
2
Sep 27, 2015 06:58 PM
Phil3822
ScoobyNet General
3
Sep 26, 2015 08:06 PM
shorty87
Other Marques
0
Sep 25, 2015 08:52 PM




All times are GMT +1. The time now is 11:47 PM.