View Single Post
Old 12-01-2017, 02:36 PM   #3
Sdumau1
Junior Member
Sdumau1 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2017
Location: Brazil
Device: Sigil
This is the problem Doitsu, i dont know why my <script></script> didnt work...

It seems that sigil is not accepting the Script tag. Shows as if what is inside <script> </script> is not being recognized

Code:
	<script>
		function Atv_Hover() {
			document.getElementById("A").src = "../Images/1_Atv_a_Hover.svg";

			document.getElementById("B").src = "../Images/2_Atv_b_Hover.svg";

			document.getElementById("C").src = "../Images/3_Atv_c_Hover.svg";

			document.getElementById("D").src = "../Images/4_Atv_d_Hover.svg";
		}
	</script>

Code:
    <p class="C_Txt"><img class="Atv" id="A" src="../Images/1_Atv_a_Normal.svg"  onmousemove="Atv_Hover"/>a) Option 1.</p>

    <p class="C_Txt"><img class="Atv" id="B" src="../Images/2_Atv_b_Normal.svg"  onmousemove="Atv_Hover"/>b) Option 2.</p>

    <p class="C_Txt"><img class="Atv" id="C" src="../Images/3_Atv_c_Normal.svg"  onmousemove="Atv_Hover"/>c) Option 3.</p>

    <p class="C_Txt"><img class="Atv" id="D" src="../Images/4_Atv_d_Normal.svg"  onmousemove="Atv_Hover"/>d) Option 4.</p>
I do not know anything about using script in sigil, I'm trying to learn, and in the tutorials I see, this is how it's done, with the JavaScript codes inside the <script> tag.
But on my Sigil is not working.
Sdumau1 is offline   Reply With Quote