Auto-thumbnail and destination image

S

Steve Easton

You might check out the free Spawn addin from Jimco software.
www.jimcosoftware.com.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
T

The Celtic Warrior

That isn't really what I was after.

I would like to have a page, which I format, that would be a single page
with a placeholder for an image. When you click the thumnail created by the
AutoThumbnail function, I would like it to hyperlink to the container page
and pass the full-sized image (as a variable value???) along to the
container page so that it understands which image to replace the original
placeholder with. Perhaps I am explaining this poorly.

Rikk.
 
S

Steve Easton

Something like this??
http://www.95isalive.com/test/

It uses a script, but it requires hand coding each link.
It's just something I've been toying with, you can view the code in the
source for the page.

Or as Tom said, another option is asp and a database.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
S

Steve Easton

I think you're right Tom.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer



Tom [Pepper] Willett said:
Steve: I think what he is looking for requires a database solution?
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
Steve Easton said:
You might check out the free Spawn addin from Jimco software.
www.jimcosoftware.com.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
 
S

Steve Easton

Interesting. XP SP2 doesn't.!!

Oh well!


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer



Tom [Pepper] Willett said:
My pop-up blocker(s) stopped them, Steve.
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
Steve Easton said:
Something like this??
http://www.95isalive.com/test/

It uses a script, but it requires hand coding each link.
It's just something I've been toying with, you can view the code in the
source for the page.

Or as Tom said, another option is asp and a database.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
 
T

Tom [Pepper] Willett

I am using XP SP2...
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
Steve Easton said:
Interesting. XP SP2 doesn't.!!

Oh well!


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer



Tom [Pepper] Willett said:
My pop-up blocker(s) stopped them, Steve.
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
Steve Easton said:
Something like this??
http://www.95isalive.com/test/

It uses a script, but it requires hand coding each link.
It's just something I've been toying with, you can view the code in the
source for the page.

Or as Tom said, another option is asp and a database.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer




That isn't really what I was after.

I would like to have a page, which I format, that would be a single
page with a placeholder for an image. When you click the thumnail
created by the AutoThumbnail function, I would like it to hyperlink to
the container page and pass the full-sized image (as a variable
value???) along to the container page so that it understands which
image to replace the original placeholder with. Perhaps I am explaining
this poorly.

Rikk.




You might check out the free Spawn addin from Jimco software.
www.jimcosoftware.com.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer



message Is there a away when autothumbnailing an image to make the
destination (larger) image appear in a special "Container" page when
the thumbnail is clicked rather than creating a page for each image.
I am looking for a way to automate this process.

--
Rikk Flohr

gallery: www.fleetingglimpse.com
consulting: www.fleetingglimpse.net

blog: http://spaces.msn.com/members/fleetingglimpse/
 
E

E. T. Culling

I think a lot depends on how many photos you want to display. Start here:
http://www.eleanorstravels.com/galleryconsiderations.htm
You could make a page for each of the larger images (sort of a template
page), put a new image in it each time and Save As a new htm page such as
photo1.htm, photo2.htm etc.
It would be best, of course, to make your own thumbnails ... not have FP do
it for you!!!
Eleanor
 
T

Trevor L.

The said:
That isn't really what I was after.

I would like to have a page, which I format, that would be a single
page with a placeholder for an image. When you click the thumnail
created by the AutoThumbnail function, I would like it to hyperlink
to the container page and pass the full-sized image (as a variable
value???) along to the container page so that it understands which
image to replace the original placeholder with. Perhaps I am
explaining this poorly.
Rikk.

Rikk,
I have done this on my site.
At least I think that what I have done is what you describe.

When you click on either of the two side pictures on my index page, it calls
the function newWindow() with the image name and a caption as parameters
<a href=''
onclick="newWindow('images/display/trevor.jpg','Trevor');return
false;">

newWindow() retrieves the dimensions of the image and calls
spawnJimcoPopop()

spawnJimcoPopop() loads picture.html to a new window with the dimensions as
extra parameters.

picture.html adds the image as a background to the table with rounded
corners. But it doesn't have to do this - it could just display the image
and the caption.

If this is of use to you, feel free to take the code and modify it to your
use. Other supporting code (e.g. CSS, or any JS I have forgotten tp post
here) is also on my site.

Code follows
/*=================================*/
function newWindow(img,caption)
{
var imageToLoad = new Image()
new function testit()
{
imageToLoad.src = img
// we need a little pause while the script gets the image
setTimeout(loadit,1000)

//--- Internal function ---
function loadit()
{
var h, windh
// check to see if we have the dimensions and if not, go back and wait
another 1 second
var w = imageToLoad.width
if (w == 0)
{
if (confirm('Image did not load.\nPress OK to try again\nPress
Cancel to exit')==true)
testit()
else
return
}
else
{
h = imageToLoad.height
windh = h + 50
spawnJimcoPopup
('picture.html?picture=' + img + '&amp;caption=' + caption
+ '&amp;height=' + h + '&amp;width=' + w, '_blank'
,
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
, windh,w,'center','0','pixel')
}
} //--- End loadit() ---
} //--- End testit() ---
}
/*=================================*/
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
if (scaleType == 'percent')
{ h = (h * screen.availHeight) / 100
w = (w * screen.availWidth) / 100 }
if (x == 'center')
x = (screen.availWidth - w) / 2
if (y == 'center')
y = (screen.availHeight - h) / 2
options += ',width=' + w + ',height=' + h
+ ',left=' + x + ',top=' + y
var newWindow = window.open(url, name, options)
newWindow.focus()
}
/*=================================*/
function qsobj(parm)
{
var qpairs = document.location.search.substring(1).split("&")
var qvbl = qpairs[parm].split("=")
return qvbl[1] ? unescape(qvbl[1].replace(/%20|\ +/g," ")) : null
}

/*=================================*/
function getPic(pic, cap, height, width)
{
var T = null
with (document)
{
title = cap
// set table styles
T = getElementById("picname").style
T.background = 'url(' + pic + ')'
T.height = height + "px"
T.width = width + "px"
// set width of table cell "tc" = Row1, Col2
getElementById("tc").style.width = (width - 40) + "px"
// set height of table cell "mc" = Row2, Col1/2/3
getElementById("mc").style.height = (height - 40) + "px"
}
}
/*=================================*/
This is picture.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<!-- picture.html -->
<head>
<title>Picture</title>
<meta name="Author" content="Trevor Lawrence"/>
<meta http-equiv="Content-Language" content="en-au"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<!-- External CSS Files -->
<link rel="stylesheet" type="text/css" href="style.css"/>
<link rel="stylesheet" type="text/css" href="style2.css"/>
<link rel="stylesheet" type="text/css" media="print" href="print.css"/>
<!-- External JS File -->
<script type="text/javascript" src="scripts/external.js"></script>
<!-- In-line JS -->
<script type="text/javascript">
pic_pic = qsobj(0)
pic_cap = qsobj(1)
pic_height = qsobj(2)
pic_width = qsobj(3)
</script>
</head>
<body id="pic" onload="getPic(pic_pic,pic_cap,pic_height,pic_width)">
<table align="center" id="picname" cellpadding="0" cellspacing="0">
<tr>
<td style="height:20px; width:20px">
<img id="tl" src="images/display/silver/tl.gif" alt="" width="20"
height="20"/></td>
<td id="tc"></td>
<td><img id="tr" src="images/display/silver/tr.gif" alt="" width="20"
height="20"/></td>
</tr>

<tr>
<td id="mc" colspan="3"></td>
</tr>

<tr>
<td style="height:20px; width:20px">
<img src="images/display/silver/bl.gif" alt="" width="20"
height="20"/></td>
<td class="red">Copyright &copy; Trevor Lawrence</td>
<td><img src="images/display/silver/br.gif" alt="" width="20"
height="20"/></td>
</tr>
</table>

<input type="button" class="hidden"
value="Print" onclick="print_page()" /><br/>
<input type="button" class="hidden"
value="Close"
onclick="window.opener=self;window.close()" /><br />

<!-- Home link when called directly -->
<a href="index.html">Home</a>

</body>
<!-- -->
</html>
=================================
 
T

Trevor L.

Trevor said:
Rikk,
I have done this on my site.
At least I think that what I have done is what you describe.

I forgot to add that a lot of the code in newWindow() is courtesy of Steve
Easton, although I have modified it somewhat.

In fact the name of the function is the same, so the source is rather
obvious once you look at both of them.

Steve,
Sorry for plagiarising without acknowledgement.
 
S

Steve Easton

Trevor L. said:
I forgot to add that a lot of the code in newWindow() is courtesy of Steve
Easton, although I have modified it somewhat.

In fact the name of the function is the same, so the source is rather
obvious once you look at both of them.

Steve,
Sorry for plagiarising without acknowledgement.

No problem.

I put it out there for people to tinker with / improve upon anyway.

;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
B

Bob Lehmann

I think XP SP2 gives you the option to block all popups, including the ones
that the user initiates.

Bob Lehmann

Steve Easton said:
Interesting. XP SP2 doesn't.!!

Oh well!


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer



Tom [Pepper] Willett said:
My pop-up blocker(s) stopped them, Steve.
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
Steve Easton said:
Something like this??
http://www.95isalive.com/test/

It uses a script, but it requires hand coding each link.
It's just something I've been toying with, you can view the code in the
source for the page.

Or as Tom said, another option is asp and a database.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer




That isn't really what I was after.

I would like to have a page, which I format, that would be a single page
with a placeholder for an image. When you click the thumnail created by
the AutoThumbnail function, I would like it to hyperlink to the
container page and pass the full-sized image (as a variable value???)
along to the container page so that it understands which image to
replace the original placeholder with. Perhaps I am explaining this
poorly.

Rikk.




You might check out the free Spawn addin from Jimco software.
www.jimcosoftware.com.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer



Is there a away when autothumbnailing an image to make the destination
(larger) image appear in a special "Container" page when the thumbnail
is clicked rather than creating a page for each image. I am looking
for a way to automate this process.

--
Rikk Flohr

gallery: www.fleetingglimpse.com
consulting: www.fleetingglimpse.net

blog: http://spaces.msn.com/members/fleetingglimpse/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top