Indsætte ASP SQL ind i Javascript
HejJeg har fundet dette Java kode til en slideshow - og det er faktisk rigtig godt, Her er et udsnit af det:
*******************************
<script type="text/javascript">
var firstbgcarousel=new bgCarousel({
wrapperid: 'mybgcarousel', //ID of blank DIV on page to house carousel
imagearray: [
['images/1.jpg', '<h2>Autumn Day</h2>The sun peaks through the trees, a knife that cuts through the chill, crisp air.'], //["image_path", "optional description"]
['images/2.jpg', '<h2>Wind Chime</h2>The bellweather of the sky, the chime speaks of impending turmoil.'],
['images/3.jpg', 'The scent of spring invigorates her as she inhales whilst the warm breeze brings a wave of tranquility.'],
['images/4.jpg', 'Alone and Lonliness- Peace and Inner Struggle'] ************************************************************
men jeg vil gerne kunne indsætte billeder via et database opslag
///////////////////
var firstbgcarousel=new bgCarousel({
wrapperid: 'mybgcarousel', //ID of blank DIV on page to house carousel
imagearray: [
['images/<%= rs("filename")%>', '<h2><%=rs("header")%></h2><%= rs("body")%>'],
///////////////////////////////
men hvordan får jeg lov til at bruge et asp sql statment midt i et JavaScript - kan slet ikke se logikken
