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.

Christmas icons

View previous topic View next topic Go down

Christmas icons

Post by Mariami on Fri 19 Dec - 12:01

pleasee put me these codes tu make a new Javascript Codes















avatar
Mariami
Forumember

Posts : 106
Reputation : 1
Language : english

http://mundonoveleras.forum2x2.ru/forum

Back to top Go down

Re: Christmas icons

Post by _Twisted_Mods_ on Fri 19 Dec - 13:04

javascript

Code:
$(function(){
$('#phpbb').prepend('<div id="xmasholder"></div>');
});

css

Code:
#xmasholder{
  background: url(linkyoyourimage);
 display: block;
      background-repeat: no-repeat;
  background-position:50%;
height:160px;
    width:100%;
  position:absolute;
}


change linktoyourimage with one of the url links to the images you provided

to change if the image is left,right,center ..change
Code:
  background-position:50%;

0% = left
50% = center
100% = right
avatar
_Twisted_Mods_
Helper
Helper

Male Posts : 2064
Reputation : 314
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: Christmas icons

Post by Mariami on Fri 19 Dec - 13:20

it does not work
avatar
Mariami
Forumember

Posts : 106
Reputation : 1
Language : english

http://mundonoveleras.forum2x2.ru/forum

Back to top Go down

Re: Christmas icons

Post by Mariami on Fri 19 Dec - 19:57

please help me
avatar
Mariami
Forumember

Posts : 106
Reputation : 1
Language : english

http://mundonoveleras.forum2x2.ru/forum

Back to top Go down

Re: Christmas icons

Post by Mati on Fri 19 Dec - 20:09

Hello

Go to Administration Panel -> Display -> Templates --> General overall_header and add below <head> this code save and Publish.

Code:
<div id="xmasholder"></div>

Code:
#xmasholder {
    background: url(http://b.pix.ge:81/c/w6k0i.gif) ;
    height: 150px;
    position: absolute;
    width: 100%;
    top: 0;
}
avatar
Mati
Active Poster

Posts : 1897
Reputation : 287
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://forumdirectory.forumotion.net/

Back to top Go down

Re: Christmas icons

Post by Mariami on Fri 19 Dec - 20:40

sorry,it doesnt work Sad
avatar
Mariami
Forumember

Posts : 106
Reputation : 1
Language : english

http://mundonoveleras.forum2x2.ru/forum

Back to top Go down

Re: Christmas icons

Post by _Twisted_Mods_ on Fri 19 Dec - 20:50

i think your doing something wrong

goto acp>modules>javascript managment

turn on javascript save

create a new javascript

title =  what ever you like
placement = in all pages
code =


Code:
$(function(){
$('#phpbb').prepend('<div id="xmasholder"></div>');
});


Submit


goto

acp>display>pictures&colors>colors>css tab

add



Code:
#xmasholder{
  background: url(http://a.pix.ge/a/ukrnb.gif);
 display: block;
      background-repeat: no-repeat;
  background-position:50%;
height:160px;
    width:100%;
  position:absolute;
}


Submit
avatar
_Twisted_Mods_
Helper
Helper

Male Posts : 2064
Reputation : 314
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: Christmas icons

Post by Mati on Fri 19 Dec - 20:50

Are you sure you do it current ?
avatar
Mati
Active Poster

Posts : 1897
Reputation : 287
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://forumdirectory.forumotion.net/

Back to top Go down

Re: Christmas icons

Post by Mariami on Fri 19 Dec - 21:22

thank you very much,I did it <33
avatar
Mariami
Forumember

Posts : 106
Reputation : 1
Language : english

http://mundonoveleras.forum2x2.ru/forum

Back to top Go down

Re: Christmas icons

Post by APE on Fri 19 Dec - 23:35

@Mariami  
Please don't double post. Your post needs to be separated by at least 24 hours before bumping. Please use the edit button instead!
First Warning



avatar
APE
Manager
Manager

Male Posts : 10807
Reputation : 1008
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

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