Subversion Repositories SmartDukaan

Rev

Rev 1097 | Rev 1933 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
538 rajveer 1
 
2
function goToImg(refimg,imgindex,img, arrTitle, containerID){
3
          //document.images[refimg].src = img[imgindex]
4
          var imgid = "#"+refimg;
5
          var img = img[imgindex];
6
          $(imgid).attr("src",img);
7
 
8
		  // Image title display
9
		  var titleIndex = imgindex;
10
		  $("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
11
}
12
 
793 rajveer 13
function goToVid(playerid, vidid, vidindex, arrTitle, containerID){
879 rajveer 14
        //alert("calling..");
637 rajveer 15
        var titleIndex = vidindex;
16
		$("#" + containerID + " .modelName").text(arrTitle[titleIndex]);
17
 
18
		ytplayer = document.getElementById(playerid);
538 rajveer 19
        ytplayer.cueVideoById(vidid);
931 rajveer 20
        // these two lines will set currentvideo id for the player 
21
        var param = "currentVideoId" + playerid.substring(8,playerid.length) + "= \"" + vidid + "\"";
1097 rajveer 22
        eval(param);
538 rajveer 23
   }