Home › Forum › Problemi Vari con WP › Includere codice Java in pagina
-
AutorePost
-
-
29 Giugno 2016 alle 11:33 #30935nicolaerPartecipante
Buon giorno a tutti ho creato un sito con WP dove vorre inserire una pagina con internamente un codice Java di seguito vi posto il codice che vorrei inserire , sapreste dirmi come fare se devo creare un plugin o usare altre strade grazie
—cod
<form name=”clockForm”><font face=”Verdana, Arial, Helvetica”> <input
name=”digits” size=”20″ value=”” type=”text”></font>
</form>
</center>
<!–mstheme–>
<!– Build animation panel
><script language=”JavaScript” src=”anim_code.js”>
</script>
<script language=”JavaScript”>
// LoadImages();
LoadImages(‘./plots/wind’);
JSClock();
</script>
<div id=”container”>
<div id=”supportingText”>
<div id=”Second”>
<p class=”p1″> <span>
<center>
<form name=”controlform” id=”Form1″>
<input value=”-6h” onClick=”Step(-6)” id=”Button8″ name=”Button8″
type=”button”>
<input value=”-1h” onClick=”Step(-1)” id=”Button1″ name=”Button1″
type=”button”>
<input style=”border: medium none ; background-color: transparent;
text-align: center;” readonly=”readonly” value=”…”
name=”info” size=”28″ id=”Text1″
type=”text”>
<input value=”+1h” onClick=”Step(1)” id=”Button2″ name=”Button2″
type=”button”>
<input value=”+6h” onClick=”Step(6)” id=”Button9″ name=”Button9″
type=”button”>
<input value=”Rewind” onClick=”Rewind()” id=”Button3″ name=”Button3″
type=”button”>
<input value=”Play” onClick=”Play()” id=”Button4″ name=”Button4″
type=”button”>
<input value=”Stop” onClick=”Stop();” id=”Button5″ name=”Button5″
type=”button”>
<input value=”Slow” onClick=”DelayTime *= 2″ id=”Button7″ name=”Button7″
type=”button”>
<input value=”Fast” onClick=”DelayTime /= 2″ id=”Button6″ name=”Button6″
type=”button”>
</form>
</center>
</span> </p>
<div style=”text-align: center;”><span><img
style=”border: 1px solid ; width: 600px; height: 450px;” alt=””
name=”pic” src=”plots/wind+00h.gif”></span></div>
</div>
</div>
</div>
—
P.s. la cartella dove ci sono i file che usa lo script l’ho messa nella root del WP
-
29 Giugno 2016 alle 13:05 #120655wollyAmministratore del forum
crei un template di pagina e lo applichi alla pagina che t’interessa, oppure crei un plugin e con il tag condizionale is_page lo carichi solo sulla pagina dove serve
-
30 Giugno 2016 alle 11:09 #120657nicolaerPartecipante
crei un template di pagina e lo applichi alla pagina che t’interessa, oppure crei un plugin e con il tag condizionale is_page lo carichi solo sulla pagina dove serve
Grazie ho creato un template vedo la form è impaginato bene l’unica cosa che non vcedo le immagini e non funziona il java e come se non riesco a far puntare alle cartelle dove tengo le immagini e il java script … mica bisogna dichiarare i percorsi in modo particolare
vi prego sto dando di matto
-
1 Luglio 2016 alle 5:57 #120658nicolaerPartecipante
Grazie Wolly ho risolto creando un tema ora va tutto benissimo ,
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.