我正在使用Javascript将Fireworks中的图像放入我的HTML页面中的“ghost div”中。但是,不包括通过Fireworks切片的约会预订按钮。如何在获得图像效果的同时包含按钮的链接切片?
Javascript代码:
$(document).ready(function() {
$('.men').click (function() {
var image = ('<img src="images/deal_men.fw.png" width="700px" height="500px" alt="Deals" />')
$('.deal_content').html(image).hide().fadeToggle('slow');
});
$('.teen').click (function() {
var image = ('<img src="images/deal_teen.fw.png" width="700px" height="500px" alt="Deals" />')
$('.deal_content').html(image).hide().fadeToggle('slow');
});
$('.couple').click (function() {
var image = ('<img src="images/deal_couples.fw.png" width="700px" height="500px" alt="Deals" />')
$('.deal_content').html(image).hide().fadeToggle('slow');
});
});