From | Israel Abraham Flores Cruz | ||
Date | Mon Jan 14 20:57:37 2008 | ||
Subject | [greenstone-users] I can't insert a script of java script | ||
Hi !
I've been trying to insert a script of javascript to obtain a function animate() { var img = document.getElementById("anim"); // Proceed to the next image counter ++; // There are only four images, so restart when we're done if (counter > 3) counter = 0; if (counter == 0) { // Display the first image img.src = "/gsdl/web/images/gsdlhead.jpg"; } else if (counter == 1) { // Display the second image img.src = "/gsdl/web/images/foto_02.jpg"; } else if (counter == 2) { // Display the third image img.src = "/gsdl/web/images/foto_03.jpg"; } else { // Display the fourth image img.src = "/gsdl/web/images/foto_04.jpg"; } // We need to call the animate function again in 0.10 seconds // Pause for 1 second between the fourth and first image if (counter == 3) { setTimeout("animate()", 2000); } else { setTimeout("animate()", 200); } }
oopsThe requested page could not be found. Please use your browsers 'back' button or the above home button to return to the Greenstone Digital Library. {#<div id="content">#<div class="divbar">#<p class="navbar">#_textdescrselcol_#</p>#</div>#<div class="section">#_homeextra_#</div> #<div class="divbar"> </div> #<div class="section">#<table>#_textgogli_#_textgocollector_#_textgodepositor_#_textgotranslator_#_textgoadmin_#_textgogreenstone_#_textgodocs_ #</table>#</div> #<div class="divbar"> </div> #<div class="section">#_textaboutgreenstone_#</div> #<div class="divbar"> </div> #</div>#}#### AQUI TERMINA EL COMENTARIO Y SE SUSTITUYE POR LO DE AQUI ABAJO ESTO LO TOMA COMO HTML CASI PURO oopsThe requested page could not be found. Please use your browsers 'back' button or the above home button to return to the Greenstone Digital Library. {<div id="content"><div class="divbar"><p class="navbar">_textdescrselcol_</p></div><div class="section">_homeextra_</div> <div class="divbar"> </div><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><div class="section"><table><p style="font-size:12px; font-family:arial,helvetica,sans-serif" > ****** todo el texto que se quiera</table></div> <div class="divbar"> </div> <div class="section">_textaboutgreenstone_</div> <div class="divbar"> </div> </div>}####HASTA AQUI FUE LO QUE SE CAMBIO# the _textgocollector_, _textgotranslator_, and _textgoadmin_ macros # may be overridden to be empty from within the receptionist if the # collector, translator, or admin facilities are disabled _textgogli_ {<tr valign=top><td valign=top>_imagegli_</td><td> Helps you create new collections, modify or add to existing ones, or delete collections </td></tr>} _textgocollector_ {<tr valign=top><td valign=top>_imagecollector_</td><td> This predates the Librarian Interface, and for most practical purposes the Librarian Interface should be used instead </td></tr>} _textgodepositor_ {<tr valign=top><td valign=top>_imagedepositor_</td><td> Helps you to add documents to existing collections </td></tr>} _textgotranslator_ {<tr valign=top><td valign=top>_imagetranslator_</td><td> Helps you keep the multilingual versions of the Greenstone interface up to date </td></tr>} _textgoadmin_ {<tr valign=top><td valign=top>_imageadmin_</td><td>_textdescradmin_</td></tr>} #_textgogreenstone_ {#<tr valign=top>#<td valign=top>_imagegogreenstone_</td>#<td>_textdescrgogreenstone_</td>#</tr>} _textgodocs_ {<tr valign=top><td valign=top>_imagegodocs_</td><td>_textdescrgodocs_</td></tr>} package homeprefGSDL Error {Preferences - Greenstone Digital Library Software} ![]() <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"><img src="/gsdl/web/images/gsdlhead.jpg" id="anim" alt="Centro de Documentación Institucional" align="middle" width="780" height="108" border="0" usemap="#Map" /><map name="Map" id="Map"><area shape="rect" coords="7,8,146,105" href="http://cdivirtual.salud.gob.mx" target="_blank" alt="cdi" /><area shape="rect" coords="661,14,761,89" href="http://portal.salud.gob.mx" target="_blank" alt="Secretaria de Salud"/></map></td> </tr></table><br><br></body>} HOME HELP PREFERENCES {HOME HELP} { function animate() { var img = document.getElementById("anim"); // Proceed to the next image counter ++; // There are only four images, so restart when we're done if (counter > 3) counter = 0; if (counter == 0) { // Display the first image img.src = "/gsdl/web/images/gsdlhead.jpg"; } else if (counter == 1) { // Display the second image img.src = "/gsdl/web/images/foto_02.jpg"; } else if (counter == 2) { // Display the third image img.src = "/gsdl/web/images/foto_03.jpg"; } else { // Display the fourth image img.src = "/gsdl/web/images/foto_04.jpg"; } // We need to call the animate function again in 0.10 seconds // Pause for 1 second between the fourth and first image if (counter == 3) { setTimeout("animate()", 2000); } else { setTimeout("animate()", 200); } }} oopsThe requested page could not be found. Please use your browsers 'back' button or the above home button to return to the Greenstone Digital Library. {<div id="content"><div class="divbar"> </div> <div class="section"><form name="PrefForm" method="get" action="/gsdlmod"><h3>Presentation preferences</h3> <table border="0"><tr valign="top"><td>Interface language:</td><td>_languageoption_</td></tr><tr valign="top"><td>Encoding:</td><td>_encodingoption_</td></tr><tr valign="top"> | Interface format: | </tr></table></div> |