Wed Feb 29, 2012 12:05 am
function showContent(s,i){
// loading
//loading_img(1);
//s = s.toString();
// i undefined
if(i==undefined){
i="";
}
if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}else{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
//alert('s'+s);
document.getElementById('s'+s).innerHTML=xmlhttp.responseText;
if(s==0||s==1||s==4||s==7||s==8||s==9){
var v="js"+s;
if(document.getElementById(v)){
eval(document.getElementById(v).innerHTML); // THIS IS THE LINE WITH ERROR
}else{
alert('e')
}
}
// open next one
if(s<aS.length-1){
showContent(s+1);
}else{
// render #anchors
Scroller.init();
// get final doc height
doc_h = getDocHeight();
}
// adjust layout
adjustLayout();
// loading animation
// OFF
aS[s][0] = 1;
//align();
}
}
xmlhttp.open("GET",s+".asp?i="+i,true);
xmlhttp.send();
}
<script language="javascript" id="js0">
<!--
// vars
oGaleriaSsImage = new Image();
lGaleriaSs = 1;
iGaleriaSs = null;
bGaleriaSs = null;
aGaleriaSs = new Array();
<%
' Randomizer
Dim max,min
Dim aImgs()
max=4
min=0
Set AA = CX.Execute(" Select imagem from 11_arquivos order by ordem DESC")
c=0
do while not AA.EoF
ReDim Preserve aImgs(c+1)
aImgs(c) = AA.Fields(0)
AA.MoveNext
c=c+1
Loop
max=UBound(aImgs)-1
c=0
do while c<5
Randomize
r = Cstr(Int((max-min+1)*Rnd+min))
img = aImgs(r)
if c=0 then
imagem = img
end if
%>
// Array imgs
aGaleriaSs[<%=c%>] = '<%=img%>';
<%
c=c+1
Loop
%>
//nextImgSs('GaleriaSs',0,'ss');
//-->
</script>
Wed Feb 29, 2012 12:51 am
eval(document.getElementById(v).innerHTML); // THIS IS THE LINE WITH ERROR
Thu Mar 01, 2012 7:49 pm
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.