If you are only going to deal with 2 Vlans, let's call 192.168.12.0/24 Vlan12 and 192.168.24.0/24 Vlan24.
Then on the switches, where you want traffic for Vlan12 to go just issue the following on the switchports
interface fx/x
switchport mode access
switchport access vlan 12
On the switchport where you want Vlan24 just issue:
interface fx/x
switchport mode access
switchport access vlan 24
If you wanted to trunk the ports, issue the following:
interface fx/x
switch port trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 12
For Vlan12 and for Vlan24
interface fx/x
switch port trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 24
One thing to keep in mind, I recommend going with the trunk if you plan on carrying more than one Vlan over that link. If you aren't then go with the access-vlan method.
HTH,
__
Edison.