The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

HTML on Sub forum

View previous topic View next topic Go down

HTML on Sub forum

Post by Gerard on 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.

Gerard
New Member

Posts : 1
Reputation : 1
Language : English

Back to top Go down

Re: HTML on Sub forum

Post by RPM on 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
Forumember

Posts : 375
Reputation : 7
Language : EN

http://roleplaymachugas.forumotion.com/

Back to top Go down

Re: HTML on Sub forum

Post by BubbleDreams on 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: http://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
New Member

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

Back to top Go down

View previous topic View next topic Back to top


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