Forgive me, for i am new to jQuery. I am creating a script which changes the page's background image on click. Though from all the tutorials i can find, i am not wise on how i can set a word to be "onclick". To make it easy, here is the script of mine that changes the background image:
<script>
$(function() {
$('pixture').click(function() {
$(this).css('background-image', 'url(resources/pixture.png)');
});
}):
</script>
And here is where i am trying to add the button (my fail code):
<h1>
<center>
<font face="Lithos">
<font color="#FF0000">
<p class="black-text-shadow">
<a onclick="pixture">TOGGLE BACKGROUND PIXTURE</a>
</p>
</font>
</center>
</h1>
If anyone could help me how to properly add a "onclick" function to "TOGGLE BACKGROUND PIXTURE", i would appreciate it.