Jump to content

Javascript - Text boxes.


Exe16p

Recommended Posts

Hi,

 

 

 

What is the code for HTML which i can use to allow users to click on a section of text and it will expand via a text box to display more information about the link they've clicked on.

 

 

 

The image version is like what they use on this page: http://www.jagex.com/corporate/Press/imageAssets.ws. Where you click on the images, and they expand. I would like to use this feature but only so that instead of images, its text.

 

 

 

 

 

Thanks

imanwinner1.png

Link to comment
Share on other sites

That looks like just basic html to me. There are thumbnails of the images which link to the full image.

 

To do the same with text you have to main options;

 

1. Show part of the text and link to a page with the full text.

 

2. Create a image with text then set it up so a thumbnail directs to the full image.

[hide=Drops]

  • Dragon Axe x11
    Berserker Ring x9
    Warrior Ring x8
    Seercull
    Dragon Med
    Dragon Boots x4 - all less then 30 kc
    Godsword Shard (bandos)
    Granite Maul x 3

Solo only - doesn't include barrows[/hide][hide=Stats]

joe_da_studd.png[/hide]

Link to comment
Share on other sites

Not too sure what you're asking, since the answers already given make it seem like you're talking about something else :/

 

Anyway, that script for the images where they expand with the effects is called LIghtbox. It's not designed to work with inline content, but there are several alternatives that do. For further reading see: Modalbox, Thickbox, or The lightbox effect without lightbox.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.