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.

Website Design Forum


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



Freelance Jobs

Reply
Images in 'floating' window
Old 11-29-2004, 04:42 PM Images in 'floating' window
Junior Talker

Posts: 2
Trades: 0
Hello all

I have built a website for my wife's photography business and on the site there is a gallery of pics.
At the moment, clicking on a thumbnail opens a larger picture in a new browser window. I have sized the pictures so that the whole pic can be seen without scrolling down/right.
What I would prefer, is if the the selected pic opened up in a new window that 'hovers' over the main page, and the window size is just bigger than the pic itself with (as I have seen on other sites) with a 'Close' button underneath.
I am using Dreamweaver (bit of a novice I'm afraid). How do I go about doing this. Is it done with (visible/invisible) layers or some other tool?

Cheers

Jemmo
Jemmo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-30-2004, 06:58 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
Cant do anything to help you with Dreamweaver (ghastly peice of kit IMHO)

However !!!

Code:
function popup(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + 
     "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=440,height=250,left=400,top=450');");
}
As you can see from the list of params that left and top are set.
These two vars position your popup window to where you want it on screen.

call it with something like
Code:
<a onclick="javascript:popup(path/to/file/file.html?title=hello')" style="cursor:pointer;cursor:hand;">
Ibbo
__________________

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

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

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

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

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 11-30-2004, 09:04 AM
Rincewind's Avatar
Super Talker

Posts: 108
Trades: 0
In dreamweaver...

Select the image that is going to act as the link to initiate the new window. Then press the F9 key to bring up the tag inspcetor on the side pannel (or click windows - tag inspector in the top menu). Now in the tag inspector slect the behaviours tab.

Cick the + button to add a behaviour to the image you seleted at the start. A menu will apear. Select "open browser window" form the list. A dialogue box apears. Fill in the url of the large image and the size the window is to be. Now click OK

Last, you will notice that under the tag inspector window it now says something like "onLoad Open browser window". Now the onLoad has to be changed. Click on the word "onLoad" and a drop down list will apear. Select "onClick" form the list.

Now test your page.
__________________
Q-4.net -
Please login or register to view this content. Registration is FREE

Stylegallery.co.uk -
Please login or register to view this content. Registration is FREE

Splodgy.com -
Please login or register to view this content. Registration is FREE
Rincewind is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Images in 'floating' 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.40592 seconds with 12 queries