Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 08-19-2005, 11:52 AM How do you do this?
Junior Talker

Posts: 2
Trades: 0
Hi,

I am just starting a web site for myself and had a question:
I have about 40 pictures that I would like to put on in thumbnails off to one side, and make it so when you click it it comes up with the bigger picture. (comes up with an Identacle page except the bigger image has changed to the one you just clicked on.) The thing is that I don't really want to make 40 different pages, one for each picture.
How do you make it so it does not have to reload a new page it just changes the bigger image to the one you just clicked on?

If that makes no sense than tell me and I will try to make it clearer.

Thanks for any help anyone can give me!

Ian
giethan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-19-2005, 12:17 PM
King Spam Talker

Posts: 1,186
Location: Manchester, UK
Trades: 0
Hi,

If you're not bothered about having the bigger picture framed in some fancy page, you could make the url of the link point to the bigger version of the picture.
gringo is offline
Reply With Quote
View Public Profile Visit gringo's homepage!
 
Old 08-19-2005, 12:24 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
If you can use ASP.NET, check out this thread:
http://www.webmaster-talk.com/showthread.php?t=34336
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 08-19-2005, 01:40 PM
TwiztedFake's Avatar
Skilled Talker

Posts: 77
Location: Central, IL
Trades: 0
If you can use PHP I have a simple solution for you. Make your layout and insert the following where you want the full size image to load.

Code:
<?php
$config["path"] = "LOCATION OF FILES";
$config["ext"] = "EXTENSION TYPE";

if (!isset($_REQUEST["page"])){
    $page = "main";
} else {
    $page = $_REQUEST["page"];
    $page = urldecode($page);
    $page = trim($page);
    $page = strip_tags($page);
    if (substr_count($page,"..") > 0 || substr_count($page,"~") > 0){
        $page = "main";
    }
}
$full = $config["path"] . $page . $config["ext"];
if (!is_file($full) || is_dir($full) || !file_exists($full)){
    die ("Sorry, the page you are looking for is gone. Please email the webmaster with the URL currently in your address bar so that it can be corrected. Thanks!");
} else {
    require_once($full);
}
?>
Once you add this to your page make sure you change LOCATION OF FILES to the location of the fullsize images. such as /images/fullsize/ Also change EXTENSION TYPE to the extension for you images, such as .jpg, .gif, etc. They must all be the same extension beign photos I figure they are probably all .jpg

Now when you create the links for the thumbnails they should look like this.
<a href="yoursite.com/photos.php?page=image1></a>
<a href="yoursite.com/photos.php?page=image2></a>

A few notes.
1. the page this is on must be a PHP file for this to work.
2. when you make the links where I have page=image1 you need to put page="yourphotofile" without the extension. For example if you photos file name is me2002.jpg then the link would be <a href="yoursite.com/photos.php?page=me2002"></a>
3. On the line $page = "main"; change "main" to a file you would like to display when the first page loads.

Any questions I'll be glad to help.
__________________

Please login or register to view this content. Registration is FREE
TwiztedFake is offline
Reply With Quote
View Public Profile Visit TwiztedFake's homepage!
 
Old 08-19-2005, 04:56 PM
Junior Talker

Posts: 2
Trades: 0
I know absolutly nothing about php. so far I am using HTML, I have made most of my site with Dreamweaver 4. so... I don't know if there is still a way to do it or not. Thanks for your help though!

Ian
giethan is offline
Reply With Quote
View Public Profile
 
Old 08-20-2005, 12:12 AM
Skorch1's Avatar
Super Talker

Posts: 115
Location: California
Trades: 0
I could use that piece of code. Thanks TwitzedFake!
__________________
Check out my
Please login or register to view this content. Registration is FREE
website!
Skorch1 is offline
Reply With Quote
View Public Profile Visit Skorch1's homepage!
 
Old 08-20-2005, 12:57 AM
TwiztedFake's Avatar
Skilled Talker

Posts: 77
Location: Central, IL
Trades: 0
How about this create your page for the images in dreamweaver the way you want it too look. Allow the space for the fullsize image to load. When you get that done post the code for that entire page and I will modify it to use PHP like I suggested. After that all you will have to do is load the page and images to your server.
__________________

Please login or register to view this content. Registration is FREE
TwiztedFake is offline
Reply With Quote
View Public Profile Visit TwiztedFake's homepage!
 
Old 08-20-2005, 04:52 AM
kate.SM's Avatar
Average Talker

Posts: 22
Location: England
Trades: 0
Nice code TwiztedFake

Thank you!
kate.SM is offline
Reply With Quote
View Public Profile Visit kate.SM's homepage!
 
Reply     « Reply to How do you do this?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33411 seconds with 12 queries