Bonjour,
J'essaye de comprendre une manière d'afficher des blocs CSS par javascript. J'utilise l'API Google pour afficher des vidéos youtube (GSvideobar), on a le choix que d'avoir des large ou small résultats (4 ou 8 vidéos).
Sur une groupe de discussion, pour controler le nombre de vidéos affichées il faut faire comme suit :
http://groups.google.com/group/googl...b6b823190be4a2Another way is to use CSS to manually get rid of videos. The class name on
each of the TD elements that hold the videos are .resultCell_gsvb. If you
create a CSS rule:
.resultCell_gsvb {
display: none;
}
then that will hide all of the videos. From there, you will need to use
Javascript (getElementById, getElementByTagName) to grab the video TD's and
set CSS rules on them to display as many as you want. Aka, loop through the
TD elements with class name == resultCell_gsvb and set the first 2 of them
to have the CSS rule display:inline.
Sauf que j'ai du mal à comprendre la méthode exacte, surtout avec le JS mélangé... Si quelqu'un peut m'éclairer![]()
Partager