bas
|
| Posted: 08/09/2008, 11:21 AM |
|
http://javascript.internet.com/image-effects/onmouseover-image-gallery.html
|
|
|
 |
jjrjr1
Posts: 942
|
| Posted: 08/10/2008, 11:07 AM |
|
Hi
Did you get the scdript from them?
You will need their scipt or write the javascript yourself to do that
I saw on the side you can give an e-mail and they will send it to you.
I had them send it to me. It looks pretty slick.
Let me know
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
bas
|
| Posted: 08/10/2008, 11:53 AM |
|
I've got the script by email.
Problem is how do I get the values from my database??
"jjrjr1" <jjrjr1@forum.codecharge> wrote in message
news:5489f2e6221ae9@news.codecharge.com...
> Hi
>
> Did you get the scdript from them?
>
> You will need their scipt or write the javascript yourself to do that
>
> I saw on the side you can give an e-mail and they will send it to you.
>
> I had them send it to me. It looks pretty slick.
>
> Let me know
>
> _________________
> Keep On Truckin' 
> John Real
>
> http://realsites.biz
> http://realtest.biz
> http://therealdealforyou.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
jjrjr1
Posts: 942
|
| Posted: 08/10/2008, 12:14 PM |
|
Hi
Actually pretty easy to do that.
After you have moved the html into the CCS template modify it so each variable you want to put in from your database is changed to a tag something like {VAR1} {VAR2} etc.
Then in your php code do this
global $Tpl;
$Tpl->setvar("VAR1","the stringfromyourdatabase");
for each one of the tags do the above.
If you want it to be from a CCS grid. It might be a little more complicated but the idea is the same.
Does That Help?
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
bas
|
| Posted: 08/10/2008, 12:33 PM |
|
So if my Db variable is called say image1
I would put $Tpl->setvar("VAR1", image1);
??
"jjrjr1" <jjrjr1@forum.codecharge> wrote in message
news:5489f3e2edb3a9@news.codecharge.com...
> Hi
>
> Actually pretty easy to do that.
>
> After you have moved the html into the CCS template modify it so each
> variable
> you want to put in from your database is changed to a tag something like
> {VAR1}
> {VAR2} etc.
>
> Then in your php code do this
>
> global $Tpl;
>
> $Tpl->setvar("VAR1","the stringfromyourdatabase");
>
> for each one of the tags do the above.
>
> If you want it to be from a CCS grid. It might be a little more
> complicated but
> the idea is the same.
>
> Does That Help?
>
> _________________
> Keep On Truckin' 
> John Real
>
> http://realsites.biz
> http://realtest.biz
> http://therealdealforyou.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
jjrjr1
Posts: 942
|
| Posted: 08/10/2008, 1:18 PM |
|
If you have put {VAR1} in the proper spot in the html
and your code looks a little more like this?
Your variable can be anything
$image = "image.jgp"
or
$image = $Container->yourcontrol->GetValue
Then
$Tpl-setvalue("VAR1",$image)
Let me know
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
jjrjr1
Posts: 942
|
| Posted: 08/10/2008, 1:37 PM |
|
BTW
Like I said, if you want it to be in a ccs grid type of thing, you will have to do some things differently. But the idea is the same.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
jjrjr1
Posts: 942
|
| Posted: 08/10/2008, 6:42 PM |
|
Just wondering if that helped?
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
bas
|
| Posted: 08/14/2008, 9:20 AM |
|
Thanks - Yes it did
"jjrjr1" <jjrjr1@forum.codecharge> wrote in message
news:5489f98f5cf059@news.codecharge.com...
> Just wondering if that helped?
>
> _________________
> Keep On Truckin' 
> John Real
>
> http://realsites.biz
> http://realtest.biz
> http://therealdealforyou.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |