Current location: Hot Scripts Forums » General Web Coding » JavaScript » Display full size image from thumb without page reloading


Display full size image from thumb without page reloading

Reply
  #1 (permalink)  
Old 08-11-03, 04:59 AM
borgo borgo is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Display full size image from thumb without page reloading

I need script that will display full size image from the list of thumbnails without reloading the whole page. I suppose JavaScript is the right tool for this job. Something like this site here

Thanx!!!
Reply With Quote
  #2 (permalink)  
Old 08-11-03, 11:54 AM
etLux etLux is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Here's an auto-sizing popper you might consider...

http://www.codelifter.com/main/javas...magepopup.html

Somewhere around I also have a script similar to the one used on the site you mentioned -- if I can dig it up, I will post back with it.

However, one drawback of that approach is, if you have a lot of images, it tends to make the page "bandwidth heavy" and hence slow to load -- as the images are generally preloaded in a header script.
Reply With Quote
  #3 (permalink)  
Old 08-12-03, 01:59 AM
borgo borgo is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
thanx

The code you posted might work. Thanx. However, if you find that script similar to what I was looking for, please post it. BTW do I need to preload images? Thanx!
Reply With Quote
  #4 (permalink)  
Old 08-12-03, 02:03 AM
Henry's Avatar
Henry Henry is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: Brisbane, Australia
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
wow etLux love the autofit popup now i dont have to serize them all!

oh and there is a sorta way you can make those picture loads without having to reload the whole page is by using iframe's have the image load in the iframe instead of on the whole page it's easy to configure just some basic html.
__________________
henerz

Last edited by Henry; 08-12-03 at 02:05 AM.
Reply With Quote
  #5 (permalink)  
Old 08-12-03, 02:21 AM
etLux etLux is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thanx

Quote:
Originally posted by borgo
The code you posted... do I need to preload images? Thanx!
No, not with that script. It's built in -- there's nothing further you need do.
Reply With Quote
  #6 (permalink)  
Old 08-12-03, 02:30 AM
etLux etLux is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally posted by Henry
wow etLux love the autofit popup now i dont have to serize them all!

oh and there is a sorta way you can make those picture loads without having to reload the whole page is by using iframe's have the image load in the iframe instead of on the whole page it's easy to configure just some basic html.
There are a number of ways to do this. Another simple way is to use a cell in a table, and script to rewrite the innerHTML.

The basic technique for that (though this is actually a menu, of course) can be garnered from the code of this script:

http://www.codelifter.com/main/javas...zingmenu1.html

Specifically, note this function:

function boxOn(which,message){
if (document.all||document.getElementById){
which.className='BorderOn'
if (document.getElementById) {document.getElementById("Message").innerHTML = message}
else {Message.innerHTML = message}
}
}
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


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