How Did They Do That? (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


Larry M. -> How Did They Do That? (8/27/2005 15:05:49)

Hi Everyone,

Good web site designer's site specializing in a vertical market (Real Estate) here: http://www.carolinaregional.com/ , which was designed in FrontPage. (Please click through to "Portfolio")

Two effects I like are (1) the rotating dissolving banner section and (2) the thumbnails loading into a larger image area in the body section. How did they do these?

The FrontPage Banner Ad component may be work for (1) but is there a script or add-in that's better? As to (2) ???

Any suggestion for a FrontPage function and/or script and/or add-in would be very much appreciated!!




womble -> RE: How Did They Do Tat? (8/27/2005 16:03:00)

The banner looks as though it's Flash.

Looking at the code it looks like the thumbnails are loading into an extra frame. I don't know, you might be able to do something like that using includes? (don't know - never used includes myself). According to my FP book though, you might be able to accomplish something like that using something called IFrames - inline frames, which are apparently different to normal frames (again, not something I've used), but it does urge caution because it's not standardised and not all browsers support it. Don't know if that helps at all.




Larry M. -> RE: How Did They Do Tat? (8/27/2005 16:44:35)

Womble,

I won't be working in frames or includes for this project but do have Swish and will investigate IFrames which I've never used.

Thanks!

Anyone have any thoughts on the Thumbnails to larger image in a common location question?





dpf -> RE: How Did They Do Tat? (8/27/2005 17:09:05)

quote:

Anyone have any thoughts on the Thumbnails to larger image in a common location question?
Larry - there are lots of javascripts that will do that. fairly simple




horseatingweeds -> RE: How Did They Do Tat? (8/27/2005 20:10:00)

quote:

Larry - there are lots of javascripts that will do that. fairly simple

One day I will be a web master and on this forum I wil say, "bla bla bla, hobide-hoee hebedy gee, it's very simple"
Currently, however, I am strugling to make a journey from the blind but blissfull world of WYSIWYG to the land of CSS.
Does anyone else feel that Front Page and CSS were never meant to be in the same tool belt?




Larry M. -> RE: How Did They Do Tat? (8/27/2005 23:09:18)

But Dan would you please share one?

Not sure how to search with keywords: Image Swap, Hover Images? Since this doesn't fit into the category of popups, or hovers or straight popups what is it? I would like the thumbnails I designate to open in one common position on the same page, not a different page.

This question has been kicked around here before but I can't remember if there has been a solid answer or, at least, I haven't thought one was good enough to bookmark. Now, of course, when I need one I can't zero in on it. Obviously it can be done.

[8D]




womble -> RE: How Did They Do Tat? (8/28/2005 5:32:10)

Larry, I did a search with "thumbnail image" on Hotscripts.com and came up with a couple of possibilities, both from Dynamic Drive:
Image Thumbnail Viewer
Image Thumbnail Viewer II
The second looks as though it might do the job quite nicely - I'm certainly going to try it out in one of the projects I'm working on at the moment. Thanks for bringing this up. [:)]




caz -> RE: How Did They Do Tat? (8/28/2005 5:33:30)

Image swap in that site:

<script Language="JavaScript">
<!--
img=new Array()
img[0]=new Image()
img[0].src="portfolio/port_1_lrg.gif"
img[1]=new Image()
img[1].src="port_1_lrg.gif"
function changeImage(imgName,imgNum) {
document.images[imgName].src=img[imgNum].src
}

//-->
</script>

../portfolio.htm

One of 10 frames in that frameset, no doctypes and around 250 warnings.

You can do this with css and validate, see this Stu Nicholls' example,
photo gallery
Something else he's done in the playground,
CSS playground





dpf -> RE: How Did They Do Tat? (8/28/2005 9:03:19)

quote:

One day I will be a web master and on this forum I wil say, "bla bla bla, hobide-hoee hebedy gee, it's very simple"
was that a dig?
horseweeds - maybe I am just in a bad mood but that really irks me. I wasnt answering your question, was I? I was answering Larrys and he knows me well enough to know that if my response is too brief, all he has to do is ask for expansion. you should know that also as I have helped you on a number of occasions.




dpf -> RE: How Did They Do Tat? (8/28/2005 11:04:26)

Larry the example caz gave, while lengthy, is a wonderful introduction to doing it with css. if you want to do it with javascript, here is how (simple)
1. use the wysiwyg to build the table with the thumbnails in place and the large cell where the images changes will go - be sure to give a name and id to that square (can be done in fp). for the sake of argument, lets say the name you gave was name="center".
2. as always with mouseovers, you want to preload the images so that when you mouseover, they are already in cache and browser doesnt have to request from server thus ruining the illusion. to build preload, put a script in the head section:

<script language="javascript" type="text/javascript">
<!--
//for each image that will be displayed when mouseover, //add these two lines giving the image a unique name
var img1= new Image(); //img1 is the unique name
img1.src="actualimage.jpg"; //here you are saying that the source of img1 is some file - dont forget the semi colons! you do this for each of the large images that gets mouseovered - dont need to do it for the thumbnails

now add one more for the image that is to be replaced
img centerimg();
centerimg.src = picturename.jpg;

when you have all the images listed with 2 lines and unique names, close the script:
-->
</script>

3. now, in the html for each thumbnail, add this mouseover code:

<a href=""

onMouseOver='document.center.src=img1.src'

onMouseOut='document.center.src=centerimg.src'><img

src="thumb1.gif"></a>

lets look at this code. you place the image thumb1.gif in the cell with the wysiwyg and the code looked like this:
<img src="thumb1.gif">
in order to get the mouseover to work, we have to add and anchor < href="" and the mouseover calls. it is using dot syntax to describe where to perform the action and document.center refers to the image that you named center - so it is saying "on mouseover change the image - not the one here but one in another place"
see how that works?






caz -> RE: How Did They Do Tat? (8/28/2005 11:29:16)

quote:

the example caz gave, while lengthy, is a wonderful introduction to doing it with css


Is that a dig [8|]
I freely admit that I know nothing about javascript.
[sm=bowdown.gif]




womble -> RE: How Did They Do Tat? (8/28/2005 11:29:29)

quote:

You can do this with css and validate, see this Stu Nicholls' example,
photo gallery

Womble likes! (and will probably have to have a go at that) [img]http://ecanus.net/forumsmiles/crazy.gif[/img]

The problem is with that though is that you don't get the link on the full size pic to link to another location.

Presumably Dan you could ditch the table in your example and do the positioning with css using divs instead of table cells if you were using xhtml/css?




Larry M. -> RE: How Did They Do Tat? (8/28/2005 11:31:27)

quote:

see how that works?


Dan,

Not yet, but I'll sure give it a try after I take a smart pill. If I "dumb out", hope it will be OK if I PM you for electronic resuscitation.




dpf -> RE: How Did They Do Tat? (8/28/2005 11:34:14)

quote:

Is that a dig
nope - the word wonderful was your clue - I am going to study that one.




dpf -> RE: How Did They Do Tat? (8/28/2005 11:36:55)

not a problem larry




Larry M. -> RE: How Did They Do Tat? (8/28/2005 11:38:02)

Womble and Carol,

Thanks very much for the tips. Looks like I have plenty of Homework to do.

This is a good example of discovering how little I really know about FrontPage when, just yesterday, ......... [:'(]




dpf -> RE: How Did They Do Tat? (8/28/2005 11:46:42)

quote:

Presumably Dan you could ditch the table in your example and do the positioning with css using divs instead of table cells if you were using xhtml/css?

womble: yes, the javascript isnt dependant upon the table - you can use it with css layout although you may have to use getElementById instead of document.etc. my rust is showing............




womble -> RE: How Did They Do Tat? (8/28/2005 12:10:43)

/womble rearranges diary to find time to play with photo galleries....[;)]




dpf -> RE: How Did They Do Tat? (8/28/2005 12:24:38)

one more tip larry - make a new page in front page and just place two images. one thumbnail and one center and then try this out with just that simple layout and get it to work before you tackle a full page.




caz -> RE: How Did They Do Tat? (8/28/2005 12:43:58)

quote:

maybe I am just in a bad mood

Again? I hope that it passes soon.




Larry M. -> RE: How Did They Do Tat? (8/28/2005 12:59:25)

Dan, Carol & Womble,

It occurs to me that the FrontPage Component Photo Gallery does just what I want except the format has thumbnails in a horizontal strip above the large picture which is centered by default.

See www.easleychamber.org/photo-tour.htm for example. (Yes, that's yours truly in the first large picture)

Any chance of modifying that code to select where (and what sizes) thumbnails and the large picture go? Sure would be a lot simpler if it could be done this way.

Comments?





caz -> RE: How Did They Do Tat? (8/28/2005 13:20:56)

Sorry Larry, but I pass on that one - I don't have a screen wide enough to display it (1280x1024).

Firefox WebDev toolbar report: 2 errors / 457 warnings

For a nice screen show app I have used Web Album Generator which is standards compliant using CSS, but doesn't display the main image the way you want. You can change the position of the thumbnails if you wish. See one in use here

Maybe the others will be able to fix the FP one.




dpf -> RE: How Did They Do Tat? (8/28/2005 13:30:06)

quote:

Again? I hope that it passes soon.
it will pass..<smile> thank you




Larry M. -> RE: How Did They Do Tat? (8/28/2005 14:46:30)

quote:

I don't have a screen wide enough to display it (1280x1024). Firefox WebDev toolbar report: 2 errors / 457 warnings


Carol,

Yes. It took your comment for me to recall the FrontPage Photo Gallery is only IE friendly. Looks fine in 1024x768 on my machine - little horizontal scrolling at 800x600 which has eluded a fix so far.

I'll pursue the scripts / CSS / whatever. Obviously the developer of www.carolinaregional.com figured it out so with some persistence I will as well. [8D]




Kerrith -> RE: How Did They Do That? (5/21/2006 7:02:38)

Hi DPF,

I'm not sure how to make the anchor.

Here's what I have.

Small image = Kerrys.jpg to be replaced when moused over by large image = Kerryl.jpg

<script language="javascript" type="text/javascript">
var img1= new Image();
img1.src="images/kerryl.jpg";
img centerimg();
centerimg.src = images/kerrys.jpg;
</script>

<body>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="108">

<a href=""

onMouseOver='document.center.src=img1.src'

onMouseOut='document.center.src=centerimg.src'><img

src="images/kerrys.jpg"></a>

</td>
<td>
<a name="centerimg.src"></a>
</td>
</tr>
</table>

Here's the test page javapopup

Here's the css page css

Tip please?

Thanks,

Kerry




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.09375