ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > WebsitePainter
How to include lightbox in webpage
Author Text

2011-02-04 18:26:14

Can someone give me directions how to include a lightbox in a webpage?

I put a Javascript component with following details on the webpage.
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

Also I added additional the following HTML code to an image which has a hyperlink set:
rel="lightbox" title="my caption"

However when I click on the image the image is shown in a new window instead of the lightbox.

Is it possible to get this working?

2011-02-04 18:42:32

Hm, don't have experience with lightbox unfortunately.
But from their website:
It doesn't work at all. The image opens up in a new window.
This is commonly caused by a conflict between JS scripts. Check your body tag and look for an attribute. Example:
<body ="MM_preloadImages(‘/images/menu_on.gif’)…;">
A quick fix to this problem is to append the initLightbox() to the attribute as so:
<body ="MM_preloadImages(‘/images/menu_on.gif’)…;initLightbox()">

2011-02-05 01:04:28

Got it working with a different lightbox version.

Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "Interna?ional" (you are not logged in)




Forum Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



Software: Ambiera Light Forum. © 2008-2018 Nikolaus Gebhardt, Ambiera e.U.