Current location: Hot Scripts Forums » General Web Coding » JavaScript » Thumnail images opening up in other frame


Thumnail images opening up in other frame

Reply
  #1 (permalink)  
Old 10-08-04, 10:54 AM
FinalFan FinalFan is offline
New Member
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Thumnail images opening up in other frame

Hi, I've got a problem: I have a website with a left and a right frame. In the
right frame I have a bunch of thumbnails and when I click them I want the
full-size picture of that thumnail showing up in the left frame.

I don't want the thumbnail pictures to just show up in the left frame with
[target="leftFrame"] because the background of the picture would be white
then. Instead, I would like to have them show up on the same page so I can
make just 1 page which can show them all.

Does anyone know how I can do this in Javascript? Any help would be
appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-08-04, 12:12 PM
Bonzo's Avatar
Bonzo Bonzo is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 340
Thanks: 0
Thanked 0 Times in 0 Posts
I have not had a lot to do with JavaScript but remembered your post when I was here http://www.cambourne.net/photos/.

Anthony

<SCRIPT language="javascript">
<!--
var putItThere = null;
var chasm = screen.availWidth;
var mount = screen.availHeight; //chasm and mount help calculate the center of the screen

function popupwindow (URL,popupWidth,popupHeight) {

if (popupWidth > chasm) {
popupWidth = chasm - 10;
}
if (popupHeight > mount) {
popupHeight = mount - 40;
}

putItThere = window.open(URL,"myPopWindow","width=" + popupWidth + ",height=" + popupHeight + ",toolbar=no,directories=no,location=no,status=no, menubar=no,resizable=yes,scrollbars=no,left=" + ((chasm - popupWidth - 10) * .5) + ",top=" + ((mount - popupHeight - 30) * .5) + ",screenX=" + ((chasm - popupWidth - 10) * .5) + ",screenY=" + ((mount - popupHeight - 30) * .5));
}
// -->
</SCRIPT>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-08-04, 02:38 PM
FinalFan FinalFan is offline
New Member
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Thanks again Bonzo, its a good script. I'll definitely use this one if I can't
figure out the problem.

Sadly, its not exactly the thing I was looking for. This script opens the
thumbnails properly but I would like them to open in another frame
(thumbnails are in right frame, fullsize pics have to open in left frame). Does
someone know a script that does that or can adjust the above script so it
does the job?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cached images drivingme nuts Mikeirv ASP 0 08-16-04 12:58 PM
get the url of a target frame elf JavaScript 1 11-27-03 03:30 PM
images hosting uae2k Script Requests 3 11-03-03 11:29 AM
How to delay a frame load nachetex ASP 6 10-28-03 10:46 AM
List images and zip before download jaimexyz Script Requests 0 09-01-03 04:01 PM


All times are GMT -5. The time now is 01:31 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.