using variable in path

C

Cortney

If I have done this:

<script language="javascript">
var large="/graphics/00000001/main.jpg";
</script>


How would I write the MM_openBrWindow to use that variable?

So normally it is like this:

<a href="javascript:;" onClick="MM_openBrWindow
('imagepath','large','scrollbars=yes,resizable=yes,width=540,height=540')">
View Large Image</a>

Where 'imagepath' is a hardcoded path. How can I write it to interpret and
use the variable "large" I defined above? Thank you
 
D

Darko

If I have done this:

<script language="javascript">
var large="/graphics/00000001/main.jpg";
</script>

How would I write the MM_openBrWindow to use that variable?

So normally it is like this:

<a href="javascript:;" onClick="MM_openBrWindow
('imagepath','large','scrollbars=yes,resizable=yes,width=540,height=540')">
View Large Image</a>

Where 'imagepath' is a hardcoded path. How can I write it to interpret and
use the variable "large" I defined above? Thank you

I guess just without single quotes?
 

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

Members online

No members online now.

Forum statistics

Threads
474,160
Messages
2,570,889
Members
47,420
Latest member
ZitaVos505

Latest Threads

Top