Embedding Code into CSS
5 posters
Graphic Design Forum | GraphicsCode.net :: Graphic Design and Web Design Forums :: Scripts and Coding :: Markup and Style-Sheet Languages
Page 1 of 1
Embedding Code into CSS
Hey all.
Just came across a problem. Is it possible to put a script into the CSS? It seems possible, but I've been failing, so if the forum seems a bit dodgy, it's what I am trying to do.
Thanks.
Just came across a problem. Is it possible to put a script into the CSS? It seems possible, but I've been failing, so if the forum seems a bit dodgy, it's what I am trying to do.
Thanks.
Last edited by dotDavid on 2009-11-23, 13:02; edited 1 time in total
Admin- Webmaster
- Posts : 1156
Join date : 2009-07-12
Re: Embedding Code into CSS
Script into CSS? You mean an HTML script or JavaScript?
MrMega- New Member
- Posts : 21
Join date : 2009-08-27
Re: Embedding Code into CSS
No I haven't seen this. However, if you are referring to embedding JS into Forumotion forums, this can be done.
Go to Administration Panel >> Display >> Homepage >> Generalities >> Additional Tags >> Click New and add the properties of your meta tag. Thus embedding your script.
Go to Administration Panel >> Display >> Homepage >> Generalities >> Additional Tags >> Click New and add the properties of your meta tag. Thus embedding your script.
kewlkreator- Global Moderator
- Posts : 927
Join date : 2009-07-13
Re: Embedding Code into CSS
I'm not sure if thats right.
Well, what I am trying to do is make a floating sidebar in that thin blue space, and then when you click a button, it slides out, giving you options.
Well, what I am trying to do is make a floating sidebar in that thin blue space, and then when you click a button, it slides out, giving you options.
Admin- Webmaster
- Posts : 1156
Join date : 2009-07-12
Re: Embedding Code into CSS
well, do you have the code of slidebar?
You can put it in welcome message.
You can put it in welcome message.
ankillien- Member
- Posts : 28
Join date : 2009-09-04
Re: Embedding Code into CSS
Yeah, I can, although, it would be nice if it was possible to have it on each page, so users don't have to come back to the home page, and back.
But, I don't feel like changing to phpbb2 or punbb, and so that may be the only option, unless there is another way.
But, I don't feel like changing to phpbb2 or punbb, and so that may be the only option, unless there is another way.
Admin- Webmaster
- Posts : 1156
Join date : 2009-07-12
Re: Embedding Code into CSS
What's wrong with embedding a script with meta tags?
kewlkreator- Global Moderator
- Posts : 927
Join date : 2009-07-13
Re: Embedding Code into CSS
How can meta tags contain script?
Try putting script in the forum description.
Try putting script in the forum description.
ankillien- Member
- Posts : 28
Join date : 2009-09-04
Re: Embedding Code into CSS
anikillien has the idea:
I posted that in your topic about sidebars
Bang! Found it: you have to go to: Admin Panel >> General >> Configuration and add the source of your script (hosted elsewhere) to the Site Description:
- Code:
<script src="url.js">//Any code here</script>
I posted that in your topic about sidebars
kewlkreator- Global Moderator
- Posts : 927
Join date : 2009-07-13
Re: Embedding Code into CSS
However:
I think that proves my point
I think that proves my point
kewlkreator- Global Moderator
- Posts : 927
Join date : 2009-07-13
Re: Embedding Code into CSS
No, thats just a meta tag for lets say description.
Admin- Webmaster
- Posts : 1156
Join date : 2009-07-12
Re: Embedding Code into CSS
how about put it in announcements?? and make it show on all pages....
just a thought....not sure it will work or not...
acp > general >messages & email > announcements
hope that helps
regards,
rex
just a thought....not sure it will work or not...
acp > general >messages & email > announcements
hope that helps
regards,
rex
Rexo- Global Moderator
- Posts : 19
Join date : 2009-11-22
Re: Embedding Code into CSS
Thanks mate, its solved.
Admin- Webmaster
- Posts : 1156
Join date : 2009-07-12
Similar topics
» Facebook Code
» Your favorite HTML code
» Designers should learn to code...
» jQuery and General Javascript Tips to Improve Your Code
» Your favorite HTML code
» Designers should learn to code...
» jQuery and General Javascript Tips to Improve Your Code
Graphic Design Forum | GraphicsCode.net :: Graphic Design and Web Design Forums :: Scripts and Coding :: Markup and Style-Sheet Languages
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum