Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: XSL and JavaScript


Message #1 by "Josh Bailey" <djbailey@l...> on Mon, 1 Oct 2001 20:03:58
Is it possible to combine XSL and JavaScript. Here is my function and 
declarations and I have noted where I would like to insert XSL. On first 
glance is this possible?

Thanks in Advance

thumb =new Image();
thumb2=new Image();
thumb3=new Image();
thumb4=new Image();

thumb.src="http://baileyj0/Admin/images/Alpharetta1.gif"
thumb2.src="http://baileyj0/Admin/images/Alpharetta2.gif"
thumb3.src="http://baileyj0/Admin/images/Alpharetta3.gif"
thumb4.src="http://baileyj0/Admin/images/360TourComingSoon.gif"
							
document.images['Alpharetta_1'].src=thumb.src
document.images['Alpharetta_2'].src=thumb2.src
document.images['Alpharetta_3'].src=thumb3.src


function thumbtobig(thumbs)
{
if(thumbs==1){document.images("large").src=thumb.src;}
if(thumbs==2){document.images("large").src=thumb2.src;}
if(thumbs==3){document.images("large").src=thumb3.src;}
if(thumbs==4){document.images("large").src=thumb4.src;}
}

I would like to change 

1. thumb.src="Populated with XSL"
2. Document.images['Populated with XSL'].src

Is this possible and is the syntax any different than that of regular XSL 
+ HTML.

  Return to Index