Expando image bbcode

User submitted BBCodes
Let us see what You have
There is no support here! Only Read Access!
Forum rules
We dont add more BBCodes to our database, but feel free to share and support your own BBCodes here.
Remember that it is not allowed to use {TEXT} inside the html tags!!!
It causes a serious security risk to your board and users.
Like this: <div style="{TEXT}">{TEXT}</div>
Green = OK - Red = forbidden
Locked
User avatar
kber
BBCoder II
BBCoder II
Posts: 7
Joined: 05 Mar 2010, 01:25
Contact:

Expando image bbcode

Post by kber »

Description: Expando is a simple script for folks who want to have an image expand onMouseover (to its actual size). This lets you display large images at a reduced size initially (aka thumbnail size), and have them dynamically expand when the mouse rolls over them
Live Demo
first : copy the attach file to your forum root
then :
open : yourstyle/template/viewtopic_body.html
find

Code: Select all

<!-- INCLUDE overall_header.html -->
add after

Code: Select all

<style type="text/css">

img.expando{ /*sample CSS for expando images. Not required but recommended*/
border: none;
vertical-align: top; /*top aligns image, so mouse has less of a change of moving out of image while image is expanding*/
}

</style>

<script type="text/javascript" src="expando.js">

</script>
now create your bbcode :

BBcode usage

Code: Select all

[imgexpo]{URL}[/imgexpo]
HTML replacement

Code: Select all

<img class="expando" border="0" src="{URL}" width="100" height="75">
then check Display on posting page
and Go :mrgreen:
Source
Last edited by kber on 24 Jun 2010, 10:11, edited 4 times in total.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Expando image bbcode

Post by cisco007 »

well i guess i stand corrected, i will delete my previous post!
Locked