Closed Thread Icon

Preserved Topic: customizing colors of dropdowns... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17849" title="Pages that link to Preserved Topic: customizing colors of dropdowns... (Page 1 of 1)" rel="nofollow" >Preserved Topic: customizing colors of dropdowns... <span class="small">(Page 1 of 1)</span>\

 
snowy
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2000

posted posted 08-31-2000 19:04

hey! i am looking at the coolframesmenu code from bratta.com but can't figure out how to customize each menu set to have its own unique background colour... take a look at the navigation on http://www.aderagroup.co.uk for a better understanding....
(but note that with their code, the colours don't show up on a mac)...
many thanks : )
s

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-31-2000 19:14

I haven't looked at the code yet but I have played with this script before. The problem you are facing is that Bratta sets up these scripts to write a large chunk of the HTML themselves. This makes is some work to get this done but it should be possible.

I had some trouble getting to the script themselves can you post the page (maybe in a more limited form) with the script in the page?


Walking the Earth like Kane

snowy
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2000

posted posted 08-31-2000 19:50

hey, thanks...
here is a portion of the code - the part where you can specify colour settings etc.

hopefully it's enough - ?
thx!
___________________________________


oCFMenu.mainbgcoloroff='Navy' //The backgroundcolor of the main menuitems
oCFMenu.mainbgcoloron='purple' //The backgroundcolor on mouseover of the main menuitems
oCFMenu.maintextcolor="white" //The original text color
oCFMenu.mainhovercolor="red" //The color the text should change to when mouseovered. NOTE: Doesn't work in NS4

oCFMenu.subbgcoloroff='red' //The backgroundcolor of the sub menuitems
oCFMenu.subbgcoloron='green' //The backgroundcolor on mouseover of the sub menuitems
oCFMenu.subtextcolor="white" //The original text color
oCFMenu.subhovercolor="silver" //The color the text should change to when mouseovered. NOTE: Doesn't work in NS4

oCFMenu.sub2bgcoloroff='orange' //The backgroundcolor of the subsub menuitems
oCFMenu.sub2bgcoloron='grey' //The backgroundcolor on mouseover of the subsub menuitems
oCFMenu.sub2textcolor="white" //The original text color
oCFMenu.sub2hovercolor="green" //The color the text should change to when mouseovered. NOTE: Doesn't work in NS4

oCFMenu.sub3bgcoloroff='#006699' //The backgroundcolor of the subsub menuitems
oCFMenu.sub3bgcoloron='#009999' //The backgroundcolor on mouseover of the subsub menuitems
oCFMenu.sub3textcolor="white" //The original text color
oCFMenu.sub3hovercolor="red" //The color the text should change to when mouseovered. NOTE: Doesn't work in NS4

//Borders
oCFMenu.bordersize=1
oCFMenu.bordercolor="Red"
//NOTE: The border immplemtation isn't prefect. The width and placement of elements have nothing
//to say here, so play with the fromtop, fromleft, subXplacement et cetera to get the desired effect.

//Styles for the top menus! - Change the colors, padding and other styles in here!
oCFMenu.topstyle="font-family:arial,helvetica; font-size:13px; padding:4;"
//Styles for the submenus - Change the colors, padding and other styles in here!
oCFMenu.substyle="padding:3px; font-family:arial,helvetica; font-size:12px"
//Styles for the sub2menus - Change the colors, padding and other styles in here!
oCFMenu.sub2style="padding:3px; font-family:arial,helvetica; font-size:12px"
//Styles for the sub3menus - Change the colors, padding and other styles in here!
oCFMenu.sub3style="padding:3px; font-family:arial,helvetica; font-size:11px"

//LEAVE THESE LINES
oCFMenu.makeStyle() //Writes out the style for the top menus
oCFMenu.makeFrameString() //Makes the string for the main frame


//Placement of the menuitems

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-31-2000 23:21

ACtually I would need to see most of the code, not just this. Here is the deal the script take this info and then uses it to write the actual HTML for the menu DIVs I need the part that writes this out so I can se how to modify it.

BTW this will not be simple


Walking the Earth like Kane

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 08-31-2000 23:54

Why are all those parameters preceeded with CFM? Are those ColdFusion things or just a coincidence in naming?

Jestah
Maniac (V) Mad Scientist

From: Long Island, NY
Insane since: Jun 2000

posted posted 09-01-2000 02:04

Ok, well I dont know as much as most of you so bear with me. For the dropdowns, cant you just make them images instead of using the text and then having rollovers? That seems so much simpler and would probably save loading time a bit. If its not possible let me know because Ive never tried it. Ive always used text in my dropdown menus...

Jestah
ieJestah@hotmail.com
ICQ - 77252449

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-01-2000 03:09

the CFM I think stands for "Color For Menu" though I can't quote that. the o is usually the convention Bratta uses for the names of custom objects since he can't use the same name as that of his CSS Div.

As to the images question, this is a canned script so you kinda have to use what has been provided for you. Actually this is a more efficient method since you can have large complex menus without images


Walking the Earth like Kane

Jestah
Maniac (V) Mad Scientist

From: Long Island, NY
Insane since: Jun 2000

posted posted 09-01-2000 07:20

Sorry I dont understand what you mean when you say its a canned script and hafta use whats provided for you. Can't you edit whatever you don't need out and use it to suit your needs a little bit better? Anyway I dont know what Im talking about here. Im pretty much a beginner who knows maybe a tip of the iceberg.

Jestah
ieJestah@hotmail.com
ICQ - 77252449

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 09-01-2000 19:23

Yes you can adjust it to suit your needs however in this case a lot of the scripting is that it actually creates the menu's for you.

If you did it yourself you would probably just create the menus by hand and then manipulate them however you want.

That's kinda what I mean by a "canned" script. He puts all of this together making it easy for the user to use themselves however it adds a lot of code and complexity to the script making things a bit harder to modify (not impossible just more difficult) also Bratta doesn't write the clearest code sometimes (he uses a lot of shortcuts) so it takes some work to reverse-engineer.


Walking the Earth like Kane

« BackwardsOnwards »

Show Forum Drop Down Menu