The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HTML on Sub forum

3 posters

Go down

HTML on Sub forum Empty HTML on Sub forum

Post by Gerard February 6th 2013, 11:13 pm

I've added background music to a homepage by entering HTML code in the Homepage message section. It also worked for me by entering it as the description for one of my sub forums. Is it possible to add it so that music will play in one sub forum only? I tried putting it in the sub forum rules section but it just displays the code.
avatar
Gerard
New Member

Posts : 1
Reputation : 1
Language : English

Back to top Go down

HTML on Sub forum Empty Re: HTML on Sub forum

Post by RPM February 7th 2013, 3:02 am

Gerard wrote:I've added background music to a homepage by entering HTML code in the Homepage message section. It also worked for me by entering it as the description for one of my sub forums. Is it possible to add it so that music will play in one sub forum only? I tried putting it in the sub forum rules section but it just displays the code.
Do you mean just 1 section? I think you would need a new Javascript code.
RPM
RPM
Forumember

Posts : 375
Reputation : 7
Language : EN

http://roleplaymachugas.forumotion.com/

Back to top Go down

HTML on Sub forum Empty Re: HTML on Sub forum

Post by BubbleDreams February 9th 2013, 1:00 am

You should use Javascript. So, go to specific sub-forum & from URL of the sub-forum copy just part which begins with f and ends with -. Example: https://help.forumotion.com/f43-scripts-coding-problems only copy this: f43-
Code:
var url=document.URL;
if(url.indexOf('part of subforum url')!=-1) {
$('body').append('Background music code');
}
For any questions, just ask. Smile
BubbleDreams
BubbleDreams
New Member

Posts : 2
Reputation : 1
Language : Serbian, English, Deutsch

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum