Insert vbscript in Java ?

D

Don Grover

How would I use a vbscript variable sMyPath into a Java function, I have
tried numerous ways but it dalls over.
Works ok with hard paths

function preloadImages() {
if (document.images) {
Menu2_02_over = newImage("images/Menu2_02-over.jpg");
Menu2_04_over = newImage("images/Menu2_04-over.jpg");
Menu2_05_Menu2_04_over = newImage("images/Menu2_05-Menu2_04_over.jpg");
Menu2_05_over = newImage("images/Menu2_05-over.jpg");
Menu2_05_Menu2_06_over = newImage("images/Menu2_05-Menu2_06_over.jpg");
Menu2_06_over = newImage("images/Menu2_06-over.jpg");
preloadFlag = true;

Need to replace the Images/ folder with sMypath

Regards
Don
 
R

Ray at

function preloadImages() {
if (document.images) {
Menu2_02_over = newImage("<%=sPath%>/Menu2_02-over.jpg");
Menu2_04_over = newImage("<%=sPath%>/Menu2_04-over.jpg");
Menu2_05_Menu2_04_over =
newImage("<%=sPath%>/Menu2_05-Menu2_04_over.jpg");
Menu2_05_over = newImage("<%=sPath%>/Menu2_05-over.jpg");
Menu2_05_Menu2_06_over =
newImage("<%=sPath%>/Menu2_05-Menu2_06_over.jpg");
Menu2_06_over = newImage("<%=sPath%>/Menu2_06-over.jpg");
preloadFlag = true;


p.s. It's javascript!

Ray at work
 

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

Forum statistics

Threads
474,132
Messages
2,570,775
Members
47,332
Latest member
datacos561

Latest Threads

Top