• Page 1 of 1
  • 1
How to open image in new window
PredatoR
Posts: 132
Reputation: 0

Message # 1 | 8:38 AM
Hello

When i put an image 200x100 size on one of my pages in my site , and when i click one time on this image it should open new window but in this new window this image should be in Real size something like 1250 x 450 , Well i have images this size and all , but i dont know how to do that to open in new window .

Something like that > http://i773.photobucket.com/albums/yy20/spartanwarrior3/expl.jpg

Thank you !



.:[ If i helped you please pump up my Reputation and give me award :) ]:.
CoffeeCone
Posts: 687
Reputation: 41

Message # 2 | 9:01 AM
You need to use window.open in an onClick event.
"Friends don't let friends use Internet Explorer 6." - Microsoft || Join the cause. Help your friends.


Post edited by shadowslash - Monday, 2011-01-17, 9:55 AM
PredatoR
Posts: 132
Reputation: 0

Message # 3 | 9:33 AM
Can you explane me little better and give the code what i need to do , becouse i really dont know how to do it .
It is my first time i am tryng to do so something .
thank you .


.:[ If i helped you please pump up my Reputation and give me award :) ]:.
CoffeeCone
Posts: 687
Reputation: 41

Message # 4 | 10:01 AM
Quote
<a href=#" onClick="window.open('http://google.com','myWindow','width=600,height=400,scrollbars=1,left=10,top=10');">test</a>

The highlighted parts are the ones you should change.


"Friends don't let friends use Internet Explorer 6." - Microsoft || Join the cause. Help your friends.


Post edited by shadowslash - Monday, 2011-01-17, 11:05 AM
PredatoR
Posts: 132
Reputation: 0

Message # 5 | 10:15 AM
Thank you very much dude !! wink

.:[ If i helped you please pump up my Reputation and give me award :) ]:.
  • Page 1 of 1
  • 1
Search: