PDA

View Full Version : ImageTooltip - Calling data from the array



mrhackett
03-21-2007, 04:26 PM
Script: ImageTooltip
http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

I have setup my Array of Messages for tooltips but I would like to be able to call the information held within them later on, on my site as just plain text how would I go about doing that?

My data is formated like this


messages[0] = new Array('INV_Misc_Cape_18.png','<SPAN class="purplename">Drape of the Righteous</SPAN> <BR> <div style="float: right;">Cloth</div>Back <BR> 85 Armor <BR> +11 Intellect <BR> <SPAN Class="itemeffectlink"> Equip: Restores 6 mana per 5 sec. <BR> Equip: Increases damage done by Holy spells by up to 40</SPAN>','black','white');

If possible I'd like only to call back the Image and Name (in this case "Drape of the Righteous")

Is this possible? Or will I have to do a lot more typing?

Thanks