Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > JavaScript
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

JavaScript JavaScript are you needing help with functions in your script, free help is offered here for all JavaScript problems so if you have an JavaScript error in your code just ask.

Google
Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 4:37 PM   #1
Ryan Sullivan
 
Ryan Sullivan's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Javascript Image Viewer from Image Map

I have been struggling mightily in getting this to work with the scripts
I have seen. I have an image map that uses overlib to display
information about a school's campus:

http://dcavello.phenominet.com/about/tour.php

I would like onClick to generate a series of thumbnails located directly
above or below the image map. Those thumbnails would then be linked to
larger images which would pop-up in a new browser window. Does anyone
know of a javascript utility that I could use for this? I am not all
that familiar with Javascript, otherwise I would write my own utility.
Thanks for any help you can offer.

Ryan
--
To reply, please remove your robe.

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Advertisements
Old 07-01-2007, 4:37 PM   #2
buba
 
buba's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Javascript Image Viewer from Image Map

On Sun, 29 Feb 2004 13:07:00 -0500, Ryan Sullivan
<rpatrick@yourrobe.wideopenwest.com> wrote:

> I have been struggling mightily in getting this to work with the scripts
> I have seen. I have an image map that uses overlib to display
> information about a school's campus:
>
> http://dcavello.phenominet.com/about/tour.php
>
> I would like onClick to generate a series of thumbnails located directly
> above or below the image map. Those thumbnails would then be linked to
> larger images which would pop-up in a new browser window. Does anyone
> know of a javascript utility that I could use for this? I am not all
> that familiar with Javascript, otherwise I would write my own utility.
> Thanks for any help you can offer.
>
> Ryan


The script below creates two images (named 1.jpg and 2.jpg) under the
"click here for images" text. You can change that by
moving the <div id="pictures"></div> tag around.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript">
<!--
var pic1 = new Image();
pic1.src = "1.jpg";
var pic2 = new Image();
pic2.src = "2.jpg";

function doIt() {
var out = new String("<img src=" + pic1.src + "><img src=" + pic2.src
+ ">");
var location = document.getElementById("pictures");
location.innerHTML = out;
}
-->
</script>

</head>

<body>
<div onClick="doIt();">click here for images</div>
<br>
<div id="pictures"></div> <!-- place this wherever you like -->

</body>
</html>

Enjoy, Buba
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 4:37 PM   #3
Dev880
 
Dev880's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Javascript Image Viewer from Image Map

Ok good job; however, I would place the popup images on the right. I have my
resolution set at 1024x768 I scrolled down to see the image and hovered over
top. I didn't see the popups until I moved back up. On the right it would
be easy to see the images and I wouldn't have to adjust my view. At the
resolution of 800x600 I would miss them totally.


Tom


"Ryan Sullivan" <rpatrick@yourrobe.wideopenwest.com> wrote in message
news:1MOdnSc7aKcCtN_d4p2dnA@wideopenwest.com...
> I have been struggling mightily in getting this to work with the scripts
> I have seen. I have an image map that uses overlib to display
> information about a school's campus:
>
> http://dcavello.phenominet.com/about/tour.php
>
> I would like onClick to generate a series of thumbnails located directly
> above or below the image map. Those thumbnails would then be linked to
> larger images which would pop-up in a new browser window. Does anyone
> know of a javascript utility that I could use for this? I am not all
> that familiar with Javascript, otherwise I would write my own utility.
> Thanks for any help you can offer.
>
> Ryan
> --
> To reply, please remove your robe.
>



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 4:38 PM   #4
Ed
 
Ed's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Javascript Image Viewer from Image Map

Ryan Sullivan wrote:
> I have been struggling mightily in getting this to work with the scripts
> I have seen. I have an image map that uses overlib to display
> information about a school's campus:
>
> http://dcavello.phenominet.com/about/tour.php
>
> I would like onClick to generate a series of thumbnails located directly
> above or below the image map. Those thumbnails would then be linked to
> larger images which would pop-up in a new browser window. Does anyone
> know of a javascript utility that I could use for this? I am not all
> that familiar with Javascript, otherwise I would write my own utility.
> Thanks for any help you can offer.
>
> Ryan


Ryan,

I am using a screen resolution of 800x600 so I do not see the thumbnails
above the image map without having to scroll back up the screen. I
don't like that.

Secondly, some of the links don't work i.e. Multipurpose room, Gymnasium
and Power Building. Maybe you don't have images for these yet?

Thirdly, with Javascript switched off, the effect doesn't work - not
surprising. But then you do not have a <noscript> section in your HTML
to handle this.

Ed
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
Tags: , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
background image David Graham HTML 4 08-26-2007 2:14 PM
Image Sharpen , php ? krzys_iek PHP 3 07-01-2007 2:13 PM
Can I make the container DIV of an image not taller than the image (HTML 4.01)? Vince C. HTML 1 07-01-2007 12:59 PM
image maps Kingdom Graphics in general 0 06-11-2007 5:35 PM
How do I curve or distort a flat label image to fit a round bottle image? Steen Alexandersen Graphics in general 0 05-31-2007 5:34 PM


Featured Websites




All times are GMT +1. The time now is 12:51 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98