Solved

Lightbox with JS pulldown menu

Posted on 2010-08-17
1
391 Views
Last Modified: 2012-05-10
I'm using a JS pulldown menu, but would like each menu option to open up a different lightbox slide show.

Below is my code...

How can this be done?
///////////// JAVASCRIPT MENU /////////////////////////
var anylinkmenu4={divclass:'anylinkmenu', inlinestyle:'width:150px; background:#DFFDF4', linktarget:'_new'} //Second menu variable. Same precaution.
anylinkmenu4.items=[
	["Stretched Limo", "http://www.cnn.com/"],
	["City Car", "http://www.msnbc.com/"],
	["SUV", "http://www.google.com/"],
	["Luxury Car", "http://news.bbc.co.uk"] //no comma following last entry!
]

////////////////////////////////////////////////////////////

//////// PROPOSED LIGHTBOX CODE ////////////////////////////
<a href="images/limo_intro1.jpg" rel="lightbox[limo]" title="Stretch Limousine Information">Test Link</a>
							<a href="images/limo_ext1.jpg" rel="lightbox[limo]" title="Stretch Limousine Exterior"></a>
							<a href="images/limo_int1.jpg" rel="lightbox[limo]" title="Stretch Limousine Interior"></a>
//////////////////////////////////////////////////////////

/////////// CURRENT CODE FOR PULLDOWN /////////////////////
<map name="linkbanner1" id="linkbanner1">
            <area shape="rect" coords="23,10,178,42" href="fleet.php" class="menuanchorclass" rel="anylinkmenu4" onclick="return GB_showCenter('Email', this.href, 460, 565)" alt="Email" />
			</center>
			</map>

Open in new window

0
Comment
Question by:tru504187211
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
level9wizard earned 500 total points
ID: 33579713
Assuming that " PROPOSED LIGHTBOX CODE" is your menu, I would suggest changing that to be a nested <ul> or <ol> - both for ease of use (in accessing and manipulating the DOM) as well as for SEO benefit. Right now your sub-level dropdown items are being stored in javascript and search enginges likely won't crawl that.

Once you create your menu as a <ul> or <ol> I would suggest checking out FancyBox? You can apply classes to organize groups (slideshows) as you requested very easily. Instructions are here:
http://fancybox.net/howto

There are a million free examples of <ul> dropdown menu's on google (i.e. http://www.cssplay.co.uk/menus) so I wouldn't get too attached to the one you are using currently.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question