Forums
This topic is locked
inserting firework htm ....
Posted 16 Jan 2002 11:40:48
1
has voted
16 Jan 2002 11:40:48 enquest enquest1 posted:
Is there and how would you insert fireworks htm via Phakt? This is the case. I difrent htm fireworks and they should change if you push on an other button. So calling an other fireworks htm file with al thos logo's.
How would you do that?
Replies
Replied 16 Jan 2002 22:37:18
16 Jan 2002 22:37:18 Tim Green replied:
Just create your fireworks htm as you normally would, and paste it into your php page as you would with a HTML page.
There is no real difference. For this to work properly in the way you want it to, you should create all of your rollovers etc in Fireworks first, create your slices, and then export HTML as normal.
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
There is no real difference. For this to work properly in the way you want it to, you should create all of your rollovers etc in Fireworks first, create your slices, and then export HTML as normal.
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 17 Jan 2002 10:56:34
17 Jan 2002 10:56:34 enquest enquest1 replied:
That I know. But how do I change from firework script on one page.
When somebody clicks on a button this points to the database and the database point to an other fireworks htm. Just like an other picture would be generated at a different place in the database. I need to generate an other fireworks script…
Thanxs
When somebody clicks on a button this points to the database and the database point to an other fireworks htm. Just like an other picture would be generated at a different place in the database. I need to generate an other fireworks script…
Thanxs
Replied 19 Jan 2002 02:46:16
19 Jan 2002 02:46:16 Tim Green replied:
Aha, I think I see what you mean. Basically you want to dynamically load a specific piece of fireworks html depending on what is clicked, and the value in the database?
That one can be a bit tricky, but the way to do it, is to have some part of the filename stored in the database.
For example, you have a button graphic, let's call it button.gif. Now, you have various versions of that graphic which might have different text, or different colours.
For this example we'll use colours. So you have a red one, an orange one and a blue one.
Name these graphics button_red.gif, button_orange.gif and button_blue.gif
In your database, for each record that relates directly to the button create a new column called colour, and enter red, orange and blue for the relevant values.
Create your recordset, ensuring this new column is a part of it.
Now insert one instance of your button (any colour, it doesn't matter), and then edit the src attribute so that it reads:-
src="button_<?php echo $recordsetName->Fields("ColourColumn" ?>.gif"
This might not describe your situation perfectly, but this same technique can be used in many ways, hopefully to achieve the effect you're looking for....
Hope this helps.
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
That one can be a bit tricky, but the way to do it, is to have some part of the filename stored in the database.
For example, you have a button graphic, let's call it button.gif. Now, you have various versions of that graphic which might have different text, or different colours.
For this example we'll use colours. So you have a red one, an orange one and a blue one.
Name these graphics button_red.gif, button_orange.gif and button_blue.gif
In your database, for each record that relates directly to the button create a new column called colour, and enter red, orange and blue for the relevant values.
Create your recordset, ensuring this new column is a part of it.
Now insert one instance of your button (any colour, it doesn't matter), and then edit the src attribute so that it reads:-
src="button_<?php echo $recordsetName->Fields("ColourColumn" ?>.gif"
This might not describe your situation perfectly, but this same technique can be used in many ways, hopefully to achieve the effect you're looking for....
Hope this helps.
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 21 Jan 2002 17:10:34
21 Jan 2002 17:10:34 enquest enquest1 replied:
Hé I forgot to thank you for your help. It helps me a great deal.
If you need something in return for your please say so. If I can and have the time I will!
If you need something in return for your please say so. If I can and have the time I will!
Replied 22 Jan 2002 00:39:37
22 Jan 2002 00:39:37 Tim Green replied:
Thanks for the offer enquest, I will certainly keep in mind for future reference <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
I'm glad that I could be of help <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
I'm glad that I could be of help <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>