Loading...

Top
PFQ Banner

This is PokéFarm Q, a free online Pokémon collectables game.

Already a user? New to PFQ?

Styleclass and You: An Introduction

Forum Index > PokéFarm > Guides >

Pages: 123··· 1516171819··· 262728

Kate1998's AvatarKate1998
Kate1998's Avatar
I mean change colors when hovering over the link.
  • Articuno UFT
  • Featured Story
  • Adoption Gachapon
  • Journal
  • Shop
All non-shiny Articuno are UFT I hatch!

Price:100k cr/100gp/30zc Each

Okay,I'm going on vacation.Protect the town,alright? Okay then master.
5 mins later
BACON PARTYYY!!! Featured Story
Journal
pecharunt's Avatarpecharunt
pecharunt's Avatar

QUOTE originally posted by Kate1998

I mean change colors when hovering over the link.
putting a:hover into the style tag. use the colours you want and further style. [url=http://google.com]google[/url] [style] a{color:#333;} a:hover{color:#aaa;}[/style]
icarus. 26. they/he. journal. trade shop. avatar. i collect normal modests & S/A hasties, naives and timids. check my about me for the summons i'm buying!
credit
Kate1998's AvatarKate1998
Kate1998's Avatar
Thanks!
rook's Avatarrook
rook's Avatar
Mm, I apologize if this is stated directly somewhere and I've missed it, and I'm guessing that I already know the answer to this, and that it's a negative. But I figured it couldn't hurt to at least ask in case I'm missing something. Essentially: is there any way to, like... use HTML? Even just typing that out makes me realize what a foolish question it is LOL but oh well. Like obviously being able to use CSS opens up a ton of possibilities and even putting other BBCode aside, the styleclass tag can essentially function as a sort of rudimentary div (even if there are some obvious differences between that and an actual <div> element), which is neat-o. But there are some things that I'd like to do that would require HTML to work the way I need them to. So I'm wondering if by some miracle styleclass somehow allows for the usage of certain HTML elements (and their associated attributes) like <input> or <button>. Because I'm gonna go out on a limb and guess that something like [styleclass="name" input type="checkbox"] isn't a thing because the code Just Doesn't Work Like That At All. Just writing that out was pretty much enough to confirm my own suspicions so I apologize for the question that I now realize is useless, but I probably won't be able to stop thinking about it (or holding onto the hope that this is possible through some basic method that I've completely overlooked) until someone can say that Yeah Sorry This Isn't A Thing. So if someone who actually knows what they're doing wrt PokeFarm code could confirm this for me (or, even better, tell me that I'm wrong.....) that'd be appreciated! Thanks for your time.
avatar by dorgoat!
DrWho's AvatarDrWho
DrWho's Avatar
You can't use CSS to insert/modify HTML elements. styleclass only allows you to set the class attribute i.e. [sc=class1 class2][/sc] becomes <div class='class1 class2' />. No need to apologise for any question, it's not stupid at all.
Avatar by Kaelwolfur. Sent from my PokéNav
Kate1998's AvatarKate1998
Kate1998's Avatar
I have a little question.How do you use styleclass with tabbed interfaces?
Ganorith's AvatarGanorith
Ganorith's Avatar

QUOTE originally posted by Kate1998

I have a little question.How do you use styleclass with tabbed interfaces?
Since we use the styleclass/sc tag for the tabbed interface already, you can just use the classes that the site uses for the tabbed interface. these classes are tabbed_interface, with ul and li for the headers, and tab-active for both headers and content. Keep in mind that the tab class on it's own will hide things with display: none;. Also, the class horizontal also applies to the tabbed interface, but unless you're using both vertical and horizontal tabbed interfaces for whatever reason you probably won't be messing with it much.
  • Header 1
  • Header 2
Content 1
Content 2

CSS

.tabbed_interface > ul > li.tab-active{ color: white; background: red; } .tabbed_interface > ul > li{ color: white; background: blue; } .tabbed_interface > div.tab-active{ background: black; color: white; }
PFP/BG/IMG from Golden Sun Code Collection
Kate1998's AvatarKate1998
Kate1998's Avatar
Thanks!
x Arlecchinø's Avatarx Arlecchinø
x Arlecchinø's Avatar
nvm, figure out screwup
cy/fev. he/they pronouns. find me at @scorkaji on discord if you need me
King's Shield

King's Shield

Forme-Change Item

(: 0)

A mysterious shield that enervates attackers. Aegislash could make good use of this.

Sells for 500

Lv. 100 — +9,624,067
Aspear BerryAspear Berry
Aspear Berry (SOUR)
Cheri BerryCheri Berry
Cheri Berry (SPICY)
Chesto BerryChesto Berry
Chesto Berry (DRY)
Pecha BerryPecha Berry
Pecha Berry (SWEET)
Rawst BerryRawst Berry
Rawst Berry (BITTER)
Likes:
Bitter food
ElectricDark
Happiness 27%
Calm nature
Lv. 100 — +11,125,013
Aspear BerryAspear Berry
Aspear Berry (SOUR)
Cheri BerryCheri Berry
Cheri Berry (SPICY)
Chesto BerryChesto Berry
Chesto Berry (DRY)
Pecha BerryPecha Berry
Pecha Berry (SWEET)
Rawst BerryRawst Berry
Rawst Berry (BITTER)
Likes:
Dry food
DarkFlying
Happiness 27%
Rash nature
Lv. 100 — +5,460,180
Aspear BerryAspear Berry
Aspear Berry (SOUR)
Cheri BerryCheri Berry
Cheri Berry (SPICY)
Chesto BerryChesto Berry
Chesto Berry (DRY)
Pecha BerryPecha Berry
Pecha Berry (SWEET)
Rawst BerryRawst Berry
Rawst Berry (BITTER)
Likes:
Sour food
Fairy
Happiness 27%
Impish nature

avatar from Hazbin Hotel s1e8 pkmnpanel code
What's the css for tabs? EDIT: nvm, just looked up like two posts xD

Wanted Shinies

Yamask
Galarian Yamask
Ferroseed
Rufflet
Bunnelby
Swirlix
Cutiefly
Passimian
Dhelmise
Indeedee M
Indeedee F
Meltan
Nidoran F
Burmy F(3)
Pumpkaboo (Small, Average, Large)
Quibbit(Magma)
Quibbit(Charged)
Salandit F
Illumise

Wanted Albinos

Pumpkaboo (Small)
Illumise
Galarian Yamask
I will gladly adopt all unwated Deltas!

Pages: 123··· 1516171819··· 262728

Cannot post: Please log in to post

© PokéFarm 2009-2024 (Full details)Contact | Rules | Privacy | Reviews 4.6★Get shortlink for this page