0
En fait, mon code est ---Ajouter le contenu de la liste à la fin?
function addElement(url,imagePath){
alert(url);
alert(imagePath);
var container = document.getElementById('sncs');
var new_element = document.createElement('li');
new_element.innerHTML ="<a href='#'><img src='"+imagePath+"' alt='' title='' width='466' height='165' onClick=\"javascript:addWidget('"+url+"')\"></a>";
new_element.className="jcarousel-item jcarousel-item-horizontal jcarousel-item-4 jcarousel-item-4-horizontal";
container.insertBefore(new_element, container.firstChild);
}
function addWidget(url) {
alert(url);
// var url='http://www.boxyourtvtrial.com/songs/public/';
var main= document.getElementById('mainwidget');
main.innerHTML = "<iframe src='"+url+"' align='left' height='1060px' width='576px' scrolling='no' frameborder='0' id='lodex'></iframe>";
}
mais quand on ajoute l'image itsnot va au mais va devant ... Alors s'il vous plaît ProvID la solution
merci mais si u aller sur la page web comme http://www.boxyourtvtrial.com/demo/ u voir au lien Widget bas si clic que défilera le menu i VHA code pour ajouter l'élément à la fin, mais quand je addee je reçois l'image au fond .... s'il vous plaît fournir une solution .... – rajesh