ActiveDen

Self-aligning XML Menu Bar

  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
lpriego says
Purchased

Hi, My objective is to click on the ABOUT US button and it to open a new window with a defined width and height. I tried

var jscommand:String = “window.open(‘http://www.adobe.com’,’win’,’height=200,width=300,toolbar=no,scrollbars=yes’);”; getURL(“javascript:” + jscommand + ” void(0);”);

it works but when I modify the code to read the link from the xml file it does not work

var jscommand:String = “window.open(‘http://+link’,’win’,’height=200,width=300,toolbar=no,scrollbars=yes’);”; getURL(“javascript:” + jscommand + ” void(0);”);

PLEASE HELP ! THANKS ! LP

4 years ago
  • Has been a member for 5-6 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 1 and 9 items
  • Netherlands
  • Referred between 50 and 99 users
Yvo says
Author

Hi there lpriego, I’m not very familiar with javascript pop-ups, but I read a few forum posts on the web and see that you are trying to load in the link with +link. This would have to be +this.link, because link does not refer to the button (which is referred to with this inside the button’s mouse event). I don’t think the http:// should be put in front the +this.link. I would probably go for putting the http:// part in the XML file.

Try this: http://pastie.org/241280

Btw pastie is better to post your code, to avoid smiley’s ;)

4 years ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
patrickgates says
Purchased

Is there Anyway to make the content crossfade or something. The sudden switch is too harsh. Thank you.

4 years ago
  • Has been a member for 5-6 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 1 and 9 items
  • Netherlands
  • Referred between 50 and 99 users
Yvo says
Author

Hi Patrick,

Sorry for the late reply. I will try to get back to you tomorrow. Extremely busy at the moment.

4 years ago
  • Has been a member for 4-5 years
  • Exclusive Author
  • Bought between 500 and 999 items
  • United States
karloo says
Purchased

Not the most flexible component. Adding longer labels does not work. Skinning should be through XML .

10 months ago

by
by
by
by
by