HTML - JQuery I think

Soldato
Joined
8 Oct 2003
Posts
2,897
Location
Glasgow
Hi guys :)

I am currently doing a wee Web Authoring module and in the process of creating my website using dreamweaver :).

I have any idea about putting links in one of my 'div' boxes on the page and content to change in the other 'div' box when the mouse goes over them.

From my google searches I have discovered 'jquery' is this the correct thing to do this? Or is there a eaiser build in method in dreamweaver?

Thanks :)
 
Stuck again guys :(!

I am trying to display an image in one div box and text in the other, also how do I apply my html formats to the text ?:)

Thanks Kevin.


<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#changeText").click(function() {
$("#visit_scotland").html("My text is changed!");
$("#stay_scotland").html("My text is changed!");
});
});
$(document).ready(function() {
$("#changeText2").click(function() {
$("#visit_scotland").html("My text is changed2!");
$("#stay_scotland").html(<img src="../ImagesMain Page/flag-of-scotland.jpg" alt="test" /> );
});
});
</script>
 
Back
Top Bottom