Ok, I am using your submenu system that has your names in the as code, so I fig ure i shoulda ask you. I implmented the menu on a new site I am designing, the only problem is the URL will not work, and how would I make them load into a iframe? The iframe name is set to main.
Any help from any1 would be great right now. To see the culprut that I am talking about check, www.evilattitude.com/vexed and you will see the menu. Thxs.
The getURL was commented out (via //) for testing purposes. You can instead uncomment the getURL and write it like this…
[AS]getURL(this.myUrl, “iframeName”);[/AS]
Where iframeName is of course the name of your iframe.
Be sure to update both instances of the code in the script.
thanks beta, I was a lil tired when I was looking at the code. One more, now that the iframe works, there are about 2-3 links I need to load in a _blank window. I kno I am being a pain in the arse, but this would be done, beats me.
Also maybe you could anwser my other post on the board about a menu question for the music.
There are two instances of this line in the script (both are slighly different due to being button and submenu button, but you get the point)…
[AS]myButton.myUrl = this.menuItem*.attributes.URL;[/AS]
What you need to do is right under that line add this line…
[AS]myButton.myTarget = this.menuItem*.attributes.TARGET;[/AS]
So for the main buttons you will have…
[AS]myButton.myUrl = menuItem*.attributes.URL;
myButton.myTarget = menuItem*.attributes.TARGET;[/AS]
And for the subMenu buttons you will have
[AS]mySubButton.myUrl = this.subMenuItem[j].attributes.URL;
mySubButton.myTarget = this.subMenuItem[j].attributes.TARGET;[/AS]
Now remember those getURLS? Change them to look like this…
[AS]getURL(this.myUrl, this.myTarget);[/AS]
Alright so we got the AS fixed. Now lets edit the XML file to incorporate this. You had it right the first time you posted the XML code (although you didn’t use the PHP vbCode tags so it didn’t show)
Just edit your XML tags to have a TARGET attribute…