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.

Coding Forum


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



Reply
Typical Question? open image new window
Old 03-02-2004, 10:11 AM Typical Question? open image new window
ngc7293's Avatar
Average Talker

Posts: 24
Location: bottom right corner of right palm
Trades: 0
If this is a typical question, please pass me a link to the thread(s) .

I have the beginnings of a gallery built almost entirely in CSS.
As you well know when a thumbnail is clicked, it opens the larger image in it's own window.
What I want is to have an image in the gallery to open in another webpage.

Here is the Gallery

That webpage would have its own CSS file and the image would appear in the same contents area like the previous page.

I have googled this and have not found an answer. I suspect it lies in either a separate js or inline.

Ideas? Help?

Thank you.
ngc7293 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-02-2004, 02:51 PM
wicko3's Avatar
The Wickmeister

Posts: 368
Location: Derby, UK
Trades: 0
how about something like:
Code:
<a href="bigimage.jpg" target="_blank">
   <img src="smallimage.jpg">
</a>
Wicko
wicko3 is offline
Reply With Quote
View Public Profile
 
Old 03-02-2004, 05:43 PM
ngc7293's Avatar
Average Talker

Posts: 24
Location: bottom right corner of right palm
Trades: 0
Nope, technically that is a Frames related attribute and will not help. And, I have tried and it open a window for the picture.
ngc7293 is offline
Reply With Quote
View Public Profile
 
Old 03-02-2004, 08:43 PM
dbzguy's Avatar
Ultra Talker

Posts: 345
Location: Artic
Trades: 0
<a href="image.type" onClick="widow.open('url','name of window','width=#,height=#,toolbar=yes,
location=yes,directories=yes,status=yes,menubar=ye s,scrollbars=yes,copyhistory=yes,resizable=yes')">
<!--Make sure the above lines dont wrap-->
<img src="image.type">
</a>

feel free to copy and paste
__________________

Please login or register to view this content. Registration is FREE


PHP Code:
<?PHP if(ping == true) { attackuserip(); } ?>
dbzguy is offline
Reply With Quote
View Public Profile
 
Old 03-02-2004, 09:15 PM
Lippy's Avatar
LipWeb.Net

Posts: 270
Trades: 0
PHP Code:

//link from small image to new window

//id is set inside a database which has two fields, id and path

<a href="images/image.php?id=2" target"_blank"><img src="/images/small_image.jpg" /></a>

//code for image.php

<? 
    $result 
mysql_query("SELECT path FROM tbl_images WHERE id='$id'");

if (!
$result)
{
    echo(
"<p>Unable to locate query results</p>");
    exit();
}

echo(
"<img src=\"" $result "\" />");
?>
If you need me to help you with actually creating the page let me know I would be happy to do so if I have some spare time.
__________________

Please login or register to view this content. Registration is FREE
"Less Lip More Service"
Providing Quality Hosting at Fair Prices
AIM: LipWebNet MSN: daniel[at]lipweb.net Yahoo: LipWebNet ICQ: 265771633
Lippy is offline
Reply With Quote
View Public Profile Visit Lippy's homepage!
 
Old 03-03-2004, 12:56 PM
ngc7293's Avatar
Average Talker

Posts: 24
Location: bottom right corner of right palm
Trades: 0
Quote:
Originally posted by dbzguy
<a href="image.type" onClick="widow.open('url','name of window','width=#,height=#,toolbar=yes,
location=yes,directories=yes,status=yes,menubar=ye s,scrollbars=yes,copyhistory=yes,resizable=yes')">
<!--Make sure the above lines dont wrap-->
<img src="image.type">
</a>

feel free to copy and paste
Thank you. I have used this popup window variation before, but it isn't what I am looking for now.
ngc7293 is offline
Reply With Quote
View Public Profile
 
Old 03-03-2004, 01:04 PM
ngc7293's Avatar
Average Talker

Posts: 24
Location: bottom right corner of right palm
Trades: 0
Is there another way of doing this?

What I am looking for might be equivalent to putting each picture into its own web page and then have the links call them.

That's more cumbersome than having a single page with maybe a place holder picture that is filled when the large image is called up.
ngc7293 is offline
Reply With Quote
View Public Profile
 
Old 03-03-2004, 01:17 PM
Lippy's Avatar
LipWeb.Net

Posts: 270
Trades: 0
The create a page for each images(alot more work) and have the link as

<a href="images/htmlfilewithimage.html">Thumbnail</a>
__________________

Please login or register to view this content. Registration is FREE
"Less Lip More Service"
Providing Quality Hosting at Fair Prices
AIM: LipWebNet MSN: daniel[at]lipweb.net Yahoo: LipWebNet ICQ: 265771633
Lippy is offline
Reply With Quote
View Public Profile Visit Lippy's homepage!
 
Reply     « Reply to Typical Question? open image new window
 

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.26940 seconds with 12 queries