ASP loop i javascript
Hejsa,Jeg har noget data som bliver smidt dynamisk ud, men hvordan får jeg det ind i et javascript?? jeg er helt blank, og det jeg prøver på giver bare en blank side.
<script>
<!--
/*
Textual Tooltip Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
var content=new Array()
//change the array below to the text associated with your links Expand or contract the array, depending on how many links you have
<%
Set findthecolors = Connbrugere.Execute ("Select * from Sanalysemaincolors where MCmain = "&SMID&"")
do while not findthecolors.eof
%>
content[<%=findthecolors("MCID")%>]='<img src="../images/large/1.jpg" width="560" height="240" />'
<%
findthecolors.MoveNext
loop
findthecolors.close
%>
function regenerate(){
window.location.reload()
}
