Notices
Non Scooby Related Anything Non-Scooby related

Raw HTML help - thunbnails to images?

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

My web-pages (at, for example
Old 22 May 2001, 09:15 PM
  #2  
boomer
Scooby Senior
Thread Starter
 
boomer's Avatar
 
Join Date: Feb 2000
Location: West Midlands
Posts: 5,763
Likes: 0
Received 0 Likes on 0 Posts
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???
Old 23 May 2001, 07:34 AM
  #3  
Lee
Scooby Regular
 
Lee's Avatar
 
Join Date: Mar 1999
Location: Essex
Posts: 1,681
Likes: 0
Received 0 Likes on 0 Posts
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
Old 23 May 2001, 07:44 AM
  #4  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
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;
Old 23 May 2001, 11:57 PM
  #5  
boomer
Scooby Senior
Thread Starter
 
boomer's Avatar
 
Join Date: Feb 2000
Location: West Midlands
Posts: 5,763
Likes: 0
Received 0 Likes on 0 Posts
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
Old 24 May 2001, 07:47 AM
  #6  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Post

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



Quick Reply: Raw HTML help - thunbnails to images?



All times are GMT +1. The time now is 11:54 AM.