The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> small to big oO, picture enlarge
slayerdeath666
post Dec 17 2008, 03:14 PM
Post #1


Advanced Member
****

Group: Members
Posts: 100
Joined: 14-December 08
Member No.: 7,337



Hey. Someone please tell me how can i do to someone press a picture than open new window and show picture in bigger sizes. like it show picture i added. thanks smile.gif


Attached image(s)
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Dec 17 2008, 04:02 PM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Please see the FAQ entries How can I create a thumbnail image that is linked to the full-sized image? and How do I create a link that opens a new window?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
slayerdeath666
post Dec 18 2008, 01:04 PM
Post #3


Advanced Member
****

Group: Members
Posts: 100
Joined: 14-December 08
Member No.: 7,337



thanks. i readed and i know now...i only dont know how to make window smaller when someone click the small image.

and what is this return false"> at the end?

This post has been edited by slayerdeath666: Dec 18 2008, 01:16 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Dec 18 2008, 04:54 PM
Post #4


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



QUOTE
and what is this return false"> at the end?
This prevents the browser from processing both the normal link and the JavaScript event handler that replaces the normal link when JavaScript is available.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 18 2008, 05:24 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



How do you mean "make window smaller"? The pop-up window?
http://htmlhelp.com/faq/html/links.html#window-specify
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
slayerdeath666
post Dec 19 2008, 02:17 PM
Post #6


Advanced Member
****

Group: Members
Posts: 100
Joined: 14-December 08
Member No.: 7,337



yes look my code how i do:

<a href="www.shrani.si/picureblabla" target="popup" onclick="window.open('example.html', 'popup', 'width=100,height=50'); return false">View Foo</a>

i used width 100 and height 50 and still same window (big one)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 19 2008, 05:57 PM
Post #7


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Looks right to me. Maybe you have configured your browser not to allow sizing of windows?

Maybe it won't be extly 100x50. A window can't be below a certain site, but it should be small.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Dec 19 2008, 06:46 PM
Post #8


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Note that
CODE
<a href="www.shrani.si/picureblabla" ...>
and
CODE
<a href="http://www.shrani.si/picureblabla" ...>
are not the same, and do not refer to the same thing.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 19 2008, 08:39 PM
Post #9


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



True, but the JS for the window size looks OK AFAICS.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 15th April 2024 - 10:33 PM