PLEASE HELP! : open new window

C

Charl

Hi All!

I am using this external .js file for my websites navigation and would
like to open the sites in a new window, will somebody please help me I
have tried a few stuff but can't get it right.

PLEASE HELP!!!

----------------------------------------------------------------------------------------------

var hBar = new ItemStyle(40, 0, '', 0, 0, '15#EAEBED', '10#6699CC',
'highText', 'highText', '', '',
null, null, 'hand', 'default');

var subM = new ItemStyle(22, 0, '<img src="/menu/tri.gif" border="0">',
-15, 3, '#C9CCD1', '#AEB0B7', 'lowText', 'highText',
'itemBorder', 'itemBorder', null, null, 'hand', 'default');

var subBlank = new ItemStyle(22, 1, '<img src="/menu/tri.gif"
border="0">', -15, 3, '#C9CCD1', '#AEB0B7', 'lowText', 'highText',
'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');

var button = new ItemStyle(22, 1, '&gt;', -15, 2, '10#006633',
'10#CC6600', 'buttonText', 'buttonHover',
'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', 'default');

var pMenu = new PopupMenu('pMenu');
with (pMenu)
{

////////////Vertical Dropdown
Menu//////////////////////////////////////////////

startMenu('root', true, 25, 244, 138, hBar, '', false);
addItem('<img src="/images/template/cnn.jpg" border="0">',
'http://www.cnn.com', '', null, 71);
addItem('<img src="/images/template/google.jpg" border="0">',
'http://www.google.com', '', null, 71);

-------------------------------------------------------------------------------------------
 
W

web.dev

Charl said:
Hi All!

I am using this external .js file for my websites navigation and would
like to open the sites in a new window, will somebody please help me I
have tried a few stuff but can't get it right.

PLEASE HELP!!!

----------------------------------------------------------------------------------------------

var hBar = new ItemStyle(40, 0, '', 0, 0, '15#EAEBED', '10#6699CC',
'highText', 'highText', '', '',
null, null, 'hand', 'default');
[...]

addItem('<img src="/images/template/google.jpg" border="0">',
'http://www.google.com', '', null, 71);

All you've given is bunch of functions being invoked, but not where the
source of the problem is. It's like saying a car won't move, and all
you've given is the steering wheel to figure out why. Please provide
more context.

1. If you are using links to open open a new window, you could just try
using the target attribute.
2. If you are trying to open a new window by using the window.open
method, again, provide more context.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top