Subversion Repositories SmartDukaan

Rev

Rev 3988 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3988 Rev 5145
Line 1... Line 1...
1
 
1
 
2
function goToImg(refimg,imgindex,img, arrTitle, containerID){
2
function goToImg(refimg,imgindex,img, arrTitle, containerID){
3
          //document.images[refimg].src = img[imgindex]
-
 
4
          var imgid = "#"+refimg;
3
          var imgid = "#"+refimg;
5
          var img = img[imgindex];
4
          var img = img[imgindex];
6
          $(imgid).attr("src",img);
5
          $(imgid).attr("src",img);
7
		  
6
		  
8
		  // Image title display
7
		  // Image title display
Line 32... Line 31...
32
	var param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";
31
	var param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";
33
	eval(param);
32
	eval(param);
34
}
33
}
35
 
34
 
36
function goToVid_old(playerid, vidid, vidindex, arrTitle, containerID){
35
function goToVid_old(playerid, vidid, vidindex, arrTitle, containerID){
37
        //alert("calling..");
-
 
38
        var titleIndex = vidindex;
36
        var titleIndex = vidindex;
39
		$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
37
		$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
40
		
38
		
41
//		ytplayer = document.getElementById(playerid);
-
 
42
//        ytplayer.cueVideoById(vidid);
-
 
43
        // these two lines will set currentvideo id for the player 
39
        // these two lines will set currentvideo id for the player 
44
        var param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";
40
        var param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";
45
        eval(param);
41
        eval(param);
46
   }
42
   }