It should work.
Are you sure that the string is like this:
Code:getURL(xml variable, "main")
It should work.
Are you sure that the string is like this:
Code:getURL(xml variable, "main")
Problem solved...
Last edited by andy1; 08-07-2007 at 08:16 PM.
I'm not sure what you mean...
On your example page, I'm seeing your tooltips. The problem seems to be that you're not setting up the XML right (i.e. it's linking to "undefined").
Ok, so how do I fix that?![]()
Ok, so that is your problem.
I was just checking because it sounded like you were saying that the entire tooltip dissappeared.
I downloaded your source files and according to your XML file, your link is located here:
where i is the index of the image being clicked.Code:xml.firstChild.childNodes[i].attributes.link
So, to add a link to each item in your carousel, add the following bit to your xml.onLoad function:
You can also get rid of the "released" function.Code:t.m_mc.id = i t.m_mc.onRelease = function() { trace (xml.firstChild.childNodes[this.id].attributes.link) }
Thanks alot!
How do I open the windows resized, centered and without navigationbar? I'm really crappy with java...
The code for just opening the window:
t.m_mc.id = i
t.m_mc.onRelease = function() {
getURL (xml.firstChild.childNodes[this.id].attributes.link)
}
Last edited by andy1; 08-08-2007 at 09:06 PM.
1. I forgot to mention that the "trace" function is just for testing purposes.
If you want it to open the link, you'll have to use the getURL method with the same string as I used in the trace.
2. To get it to open in another window, use:
getURL(xml.firstchild.childNodes[this.id].attributes.link, _blank);
3. I think what you're referring to is a chromeless window. Instructions are here: http://www.dynamicdrive.com/dynamici...chromeless.htm.
However, these don't work with new tabbed browsers (i.e. Firefox, IE7).
Bookmarks