Caiapfas
asked on
Dreamweaver/Fireworks : I use to knock it, but know i want to learn it...
Ok, I perfer to handcode, but when I need a editor I use frontpage. But I have seen some sites like
http://www.astra-heights.com/
and I'm under the impression that dreamweaver or fireworks spits out the page rdy to go, if so i need to jump on the band wagon now ,to safe me tons of time.
is there some way you load the image and click n drag , layout you parametters and click generate and it automatic makes it..?
i came to believe this from,..
<!-- Fireworks 4.0 Dreamweaver 4.0 target. Created Fri Jan 31 12:06:06 GMT-0600 (Central Standard Time) 2003-->
if so any guideness/info/tips or a walk - through?
http://www.astra-heights.com/
and I'm under the impression that dreamweaver or fireworks spits out the page rdy to go, if so i need to jump on the band wagon now ,to safe me tons of time.
is there some way you load the image and click n drag , layout you parametters and click generate and it automatic makes it..?
i came to believe this from,..
<!-- Fireworks 4.0 Dreamweaver 4.0 target. Created Fri Jan 31 12:06:06 GMT-0600 (Central Standard Time) 2003-->
if so any guideness/info/tips or a walk - through?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
you right about dreamweaver, but i found out its Fireworks and not that i know, Frontpage doesnt allow the same stuff to happen without doing it yourself....iamges swaps, etc...and then spit it out for you
Okay, well I think dreamweaver only uses three functions to swap images. Here they are...
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x= a[i])&&x.o Src;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arg uments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+= 3)
if ((x=MM_findObj(a[i]))!=nul l){documen t.MM_sr[j+ +]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&p arent.fram es.length) {
d=parent.frames[n.substrin g(p+1)].do cument; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length; i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d. layers.len gth;i++) x=MM_findObj(n,d.layers[i] .document) ;
if(!x && document.getElementById) x=document.getElementById( n); return x;
}
Then the events are like so.
example of a linked image that changes onmouseover/mouseout:
<a href="http://www.yourlink.com" onMouseOut="MM_swapImgRest ore()" onMouseOver="MM_swapImage( 'imagetitl e','','but tons/home/ imgname_ov er.jpg',1) "><img name="imagetitle" border="0" src="buttons/home/imgname. jpg" width="130" height="17"></a>
--------
D_M_D
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arg
if ((x=MM_findObj(a[i]))!=nul
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&p
d=parent.frames[n.substrin
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;
for(i=0;!x&&d.layers&&i<d.
if(!x && document.getElementById) x=document.getElementById(
}
Then the events are like so.
example of a linked image that changes onmouseover/mouseout:
<a href="http://www.yourlink.com" onMouseOut="MM_swapImgRest
--------
D_M_D
There's also a preloadimages function that would be handy for you....
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_pre loadImages .arguments ; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
To preload images add the above code between the <head> tags, then add the following code to you body tag, just list your images like the example below.
<body onLoad="MM_preloadImages(' buttons/ho mepopups/a bout2over. gif','butt ons/homepo pups/Polpa yhome_over .gif')">
Here's a couple of references...
http://www.idest.com/dreamweaver/
http://www.dwfaq.com/
--------
D_M_D
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_pre
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
To preload images add the above code between the <head> tags, then add the following code to you body tag, just list your images like the example below.
<body onLoad="MM_preloadImages('
Here's a couple of references...
http://www.idest.com/dreamweaver/
http://www.dwfaq.com/
--------
D_M_D
ASKER
i'm more interested in fireworks, its the mircule worker...
Glad I could help!
---------
D_M_D