|
-
Mar 12th, 2006, 12:04 PM
#1
Thread Starter
Addicted Member
Javascript: Can't you have VB script in it??
Hi,
I'm trying to create a javascript function that has some VB script... but it seems as once the page loads the VB script is executed without a call to the function. Is this not possible... how can I make it happen??
-------------------------------------------------------
function rotate(srcimage,direction){
n=n+direction;
if (n==allImages) n=0;
if (n==-1) n=allImages-1;
<%
if not rsProdSpecs.EOF then
rsProdSpecs.MoveNext
eProdImage = rsProdSpecs("img")
else
end if
%>
document.images[srcimage].src="images/productImages/<%=eProdImage%>";
}
-------------------------------------------------------
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|