PDA

View Full Version : Adding img to Omni Slide Menu



mcisgr
12-29-2009, 12:31 AM
1) Script Title: Omni Slide Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm

3) Describe problem: I'm using omni slide menu to create a list of countries and I want to add a gif flag to each one. Has anyone done it?

jscheuer1
12-29-2009, 01:09 AM
I would try, like where you have something like so (in menuItems.js):


menuItems:[ // REQUIRED!!
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
["Menu"], //create header
["Dynamic Drive", "http://www.dynamicdrive.com", ""],
["What's New", "http://www.dynamicdrive.com/new.htm",""],
["What's Hot", "http://www.dynamicdrive.com/hot.htm", ""],
["Message Forum", "http://www.dynamicdrive.com/forums", ""],
["Submit Script", "http://www.dynamicdrive.com/submitscript.htm", ""],
["Link to Us", "http://www.dynamicdrive.com/link.htm", ""],

["FAQ", "http://www.dynamicdrive.com/faqs.htm", "", 1, "no"], //create two column row, requires d_colspan:2 (the default)
["Email", "http://www.dynamicdrive.com/contact.htm", "",1],

["External Links", "", ""], //create header
["JavaScript Kit", "http://www.javascriptkit.com", "_new"],
["Freewarejava", "http://www.freewarejava.com", "_new"],
["Coding Forums", "http://www.codingforums.com", "_new"] //no comma after last entry

Let's zoom in on the highlighted line, adding the now highlighted:


["Dynamic Drive<img src='some.gif' alt=''>", "http://www.dynamicdrive.com", ""],

If you want more help:

Please post a link to the page on your site that contains the problematic code so we can check it out.