• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

A way to expand picture when clicked on?

Tyson12302

New Member
Joined
Aug 6, 2014
Messages
264
Reaction score
4
I made my Screenshot Themebox and it shows the picture, but its too small. How can i make it so when i click on it, it will open a bigger version like tibia.com has?
 
Code:
onclick="window.open('http://static.tibia.com/images/news/webshop_big.jpg', 'coins packages', 'width=730, height=410')"
This is the code they're using on their img tags, just edit the URL/size to suit your neds.
 
hmm im quiet lost. This is how my code looks now
Code:
<img id="ScreenshotContent" class="ThemeboxContent" src="<?PHP echo $layout_name; ?>/images/screenshots/witch_thumb.gif"
where do i add the code before the url right?
 
You can change it to this:
Code:
<img id="ScreenshotContent" class="ThemeboxContent" src="<?PHP echo $layout_name; ?>/images/screenshots/witch_thumb.gif" onclick="window.open('<?PHP echo $layout_name; ?>/images/screenshots/witch_thumb.gif', '', 'width=730, height=410')">
Edit the size as needed.
 
Back
Top