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 09-10-2008, 02:47 PM Un-scalable window
Junior Talker

Posts: 3
Trades: 0
Hello.

I am in the process of building a modest site using Dreamweaver MX and am looking for the answer to a problem I have.

I have some thumbnails images that are set up as links to larger, higher res versions of said images. What I need to know is how can the window that opens with the larger image be set so that it's dimensions can't be changed e.g. I don't want people to be able to click on the bottom right of the window and drag it to make it bigger/smaller??

I'm a relative novice at web-building so any help would be really appreciated.

Thanks in advance

Dan
roachford is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-10-2008, 03:08 PM Re: Un-scalable window
Average Talker

Posts: 17
Name: Dejan
Location: Macedonia
Trades: 0
If i understood you good, you want to open a pop-up window.
you can make it via javascript.

add this code to some .js file (ex. js.js):

Quote:
function PopUp(file, width, height) {
PopUpWindow = open(file, "PopUpWindow", "top="+(screen.availWidth-width)/2+",left="+(screen.availHeight-height)/2+",width="+width+",height="+height+",resizible=no ,status=no,toolbar=no,menubar=no,scrollbars=yes");
PopUpWindow.focus( )
}
and add this to the head section of your html file:

Quote:

<script src="/js.js" type="text/javascript"></script>
with this, you will include the javascript file to the html file.

now,
when u will add links, the links will look like this:

<a href="PopUp(file, width, height)">

where file is the html file with big picture (u need to make different files for all pictures),
width & height are the width and the heigh of the pop-up window
DeJaaaN is offline
Reply With Quote
View Public Profile Visit DeJaaaN's homepage!
 
Old 09-10-2008, 03:31 PM Re: Un-scalable window
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
There's an easier solution - use something like Lightbox - the window that opens can NOT be tampered with because it's an overlay. You also don't have to mess with all that scripting, it's easy to implement.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-10-2008, 03:43 PM Re: Un-scalable window
Average Talker

Posts: 17
Name: Dejan
Location: Macedonia
Trades: 0
yeah, lightbox is a good solution
DeJaaaN is offline
Reply With Quote
View Public Profile Visit DeJaaaN's homepage!
 
Old 09-10-2008, 03:51 PM Re: Un-scalable window
Junior Talker

Posts: 3
Trades: 0
OK, what is Lightbox?

Thanks for the replies by the way!!
roachford is offline
Reply With Quote
View Public Profile
 
Old 09-10-2008, 04:05 PM Re: Un-scalable window
Average Talker

Posts: 17
Name: Dejan
Location: Macedonia
Trades: 0
lightbox is a js script.

you can read more about lightbox here: http://www.huddletogether.com/projects/lightbox/
DeJaaaN is offline
Reply With Quote
View Public Profile Visit DeJaaaN's homepage!
 
Reply     « Reply to Un-scalable 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.26521 seconds with 12 queries