Ive a trouvé un script au lecteur dynamique qui correspond exactement à ce que je voudrais faire, mais pour une raison quelconque, le script ne fonctionne pas correctement. la fonction close est pas. . . bien, fonctionnel gif "alt =": lol: "title =" Laughing "/>
heres ce qui semble être la partie importante du code
<td id="dragbar" style="cursor:hand; cursor:pointer" width="100%" onMousedown="initializedrag(event)"><ilayer width="100%" onSelectStart="return false"><layer width="100%" onMouseover="dragswitch=1;if (ns4) drag_dropns(showimage)" onMouseout="dragswitch=0"><font face="Verdana"
color="#FFFFFF"><strong><small>Announcement Box</small></strong></font></layer></ilayer></td>
<td style="cursor:hand"><a href="#" onClick="hidebox();return false"><img src="close.gif" width="16px"
height="14px" border=0></a></td>
- <td id="dragbar" style="cursor:hand; cursor:pointer" width="100%" onMousedown="initializedrag(event)"><ilayer width="100%" onSelectStart="return false"><layer width="100%" onMouseover="dragswitch=1;if (ns4) drag_dropns(showimage)" onMouseout="dragswitch=0"><font face="Verdana"
- color="#FFFFFF"><strong><small>Announcement Box</small></strong></font></layer></ilayer></td>
- <td style="cursor:hand"><a href="#" onClick="hidebox();return false"><img src="close.gif" width="16px"
- height="14px" border=0></a></td>
le lien pour l'ensemble du script est
http://www.dynamicdrive.com/dynamicindex11/abox.htm#Ive a essayé de changer l'attribut onclick de «hidebox" à "window.close", mais qui provoque la page Web entière pour fermer (pas tout à fait ce que j'avais prévu ou souhaité.)
Mark