UBB.Dev
Posted By: zim fireworks / UBB rollover problem - 09/15/2000 2:21 AM
I've been trying to implement absolute URL's into fireworks javascript rollover output as suggested in the design integration tutorial. It seems to me that this functionality is not built into fireworks and that the javascript must be manually edited, but all my attempts at this have failed. I'm sure I must be putting URL info before graphic file names where it is not needed (along with where it is needed), but I'm damned if I can figure out where I'm going wrong.

I'm going to paste a snippet of the header in the hope that someone can tell me where I'm going wrong. I'm sure that the fault is in this section somewhere....

_______________

if (document.images) {
Roll_r02_c1_f2 = new Image(75 ,30); Roll_r02_c1_f2.src = "http://www.mydomain.com/rollovers/Roll_r02_c1_f2.gif";
Roll_r02_c1_f1 = new Image(75 ,30); Roll_r02_c1_f1.src = "http://www.mydomain.com/rollovers/Roll_r02_c1.gif";
Roll_r03_c1_f2 = new Image(75 ,30); Roll_r03_c1_f2.src = "http://www.mydomain.com/rollovers/Roll_r03_c1_f2.gif";
Roll_r03_c1_f1 = new Image(75 ,30); Roll_r03_c1_f1.src = "http://www.mydomain.com/rollovers/Roll_r03_c1.gif";
Roll_r04_c1_f2 = new Image(75 ,30); Roll_r04_c1_f2.src = "http://www.mydomain.com/rollovers/Roll_r04_c1_f2.gif";
Roll_r04_c1_f1 = new Image(75 ,30); Roll_r04_c1_f1.src = "http://www.mydomain.com/rollovers/Roll_r04_c1.gif";
Roll_r05_c1_f2 = new Image(75 ,30); Roll_r05_c1_f2.src = "http://www.mydomain.com/rollovers/Roll_r05_c1_f2.gif";
Roll_r05_c1_f1 = new Image(75 ,30); Roll_r05_c1_f1.src = "http://www.mydomain.com/rollovers/Roll_r05_c1.gif";
Roll_r06_c1_f2 = new Image(75 ,30); Roll_r06_c1_f2.src = "http://www.mydomain.com/rollovers/Roll_r06_c1_f2.gif";
Roll_r06_c1_f1 = new Image(75 ,30); Roll_r06_c1_f1.src = "http://www.mydomain.com/rollovers/Roll_r06_c1.gif";
Roll_r07_c1_f2 = new Image(75 ,30); Roll_r07_c1_f2.src = "http://www.mydomain.com/rollovers/Roll_r07_c1_f2.gif";
Roll_r07_c1_f1 = new Image(75 ,30); Roll_r07_c1_f1.src = "http://www.mydomain.com/rollovers/Roll_r07_c1.gif";
Roll_r08_c1_f2 = new Image(75 ,30); Roll_r08_c1_f2.src = "http://www.mydomain.com/rollovers/Roll_r08_c1_f2.gif";
Roll_r08_c1_f1 = new Image(75 ,30); Roll_r08_c1_f1.src = "http://www.mydomain.com/rollovers/Roll_r08_c1.gif";
}
// stop hiding -->



















_______________

By the way, congratulations on a great site and unbelievable board [Linked Image]

Many thanks

Zim

------------------
Posted By: AllenAyres Re: fireworks / UBB rollover problem - 09/15/2000 7:57 AM
thanks zim, you might have better luck using base paths (I think that is the term, my brain is tired) like this:
/rollovers/image1.gif
/rollovers/image1_f2.gif

I believe that is a setting in fireworks, and will cut down on your file size and give just as accurate paths...

thank you for the compliment...

------------------
Allen

- http://www.stand318.com
© UBB.Developers