Widget:costumeSwitcher: Difference between revisions
Jump to navigation
Jump to search
Pianoforte (talk | contribs) No edit summary |
Pianoforte (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
costumeSelection = document.getElementById("costumeSelection").value; | costumeSelection = document.getElementById("costumeSelection").value; | ||
$("#fullart a").attr("href", costumeSelection); | |||
$("#fullart a").attr("href", | $("#fullart a img").attr("src", costumeSelection); | ||
$("#fullart a img").attr("src", | $("#fullart a img").attr("alt", costumeSelection); | ||
$("#fullart a img").attr("alt", | |||
$("#fullart_D a").attr("href", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + "_D.png"); | $("#fullart_D a").attr("href", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + "_D.png"); | ||
Line 37: | Line 36: | ||
</script> | </script> | ||
<select id="costumeSelection" onchange="swap_costume()"> | <select id="costumeSelection" onchange="swap_costume()"> | ||
<option value="" selected="selected">Default</option> | <option value="{{filepath:Springfield.png|420}}" selected="selected">Default</option> | ||
<option value="_mod">Mod</option> | <option value="_mod">Mod</option> | ||
<option value="_costume1"><!--{$costume1|escape:'html'}--></option> | <option value="_costume1"><!--{$costume1|escape:'html'}--></option> |