0 votes
by (370 points)

Few days ago i asked a guy on this page for a code about toggleslide.It worked perfectly except that from the beginning the code shows the content which was supposed to be shown only after clicking the link.Can anybody fix it for me please?

<div id="StoryRightSidebar">
<<link "Your Skills">>
	<<script>>
		var $el = $('#your-skills').slideToggle({
			'complete': function () {
				State.variables.YourSkillsStyle = "display: " + $el.css('display') + ";"
			}
		});
	<</script>>
<</link>>
<div id="your-skills" @style="$YourSkillsStyle">\
Math skill: $Mathskill
Literature skill: $Literatureskill
French skill: $Frenchskill
Physics skill: $Physicsskill
History skill: $Historyskill
Biology skill: $Biologyskill
Chemistry skill: $Chemistryskill
Geography skill: $Geographyskill
Art skill: $Artskill
Music skill: $Musicskill
Movie skill: $Movieskill
PE skill: $PEskill
Social skill: $Socialskill
</div>
</div>

 

1 Answer

0 votes
by (68.6k points)

Did you initialize the $YourSkillsStyle story variable within the StoryInit special passage as you were told?

by (370 points)
Yes.It doesn't change anything
...