Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 5 users online :: 0 Registered, 0 Hidden and 5 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
Scary face
Page 1 of 1 • Share
- Bigtuber
- Gender :
Posts : 125
Points : 3425
Reputation : 52
Location : Germany
Language : German, English
Browser : Forum Version :
You got me, Ange.
Wow, this was unexpected.
Wow, this was unexpected.
I see you two met our other worldly friends ! No worries they wont bite ( I think >.> ), might scare the crap outta you though.
Anyone know a good exorcist ?
Anyone know a good exorcist ?
If anyone is up for scaring their members, here's the script.
Go to Admin Panel > Modules > JS Codes management > Create a new script
Title : Jump Scare
Placement : In all the pages
P.S. It uses jQuery since this was a quickie.
Happy Halloween !
Go to Admin Panel > Modules > JS Codes management > Create a new script
Title : Jump Scare
Placement : In all the pages
- Code:
$(function() {
'JUMP SCARE - Happy Halloween';
'Script by : https://github.com/SethClydesdale';
'Images from : http://designurge.com/scary-pictures/';
// list of images for scaring poor souls
var list = [
'https://i97.servimg.com/u/f97/18/45/41/65/evil_d10.jpg',
'https://i97.servimg.com/u/f97/18/45/41/65/evilde10.jpg',
'https://i97.servimg.com/u/f97/18/45/41/65/hallow10.jpg',
'https://i97.servimg.com/u/f97/18/45/41/65/scary-10.jpg',
'https://i97.servimg.com/u/f97/18/45/41/65/scream10.jpg',
'https://i97.servimg.com/u/f97/18/45/41/65/evil-d10.jpg',
'https://i97.servimg.com/u/f97/18/45/41/65/10051110.jpg',
'https://i97.servimg.com/u/f97/18/45/41/65/17662710.gif'
],
img = document.createElement('DIV'); // div instead of an img so we can use backgroundSize
// set CSS styles
$(img).css({
background : 'url(' + list[ Math.floor(Math.random() * list.length) ] + ') no-repeat',
backgroundSize : '100% 100%',
position : 'fixed',
top : 0,
left : 0,
right : 0,
bottom : 0,
opacity : 1,
visibility : 'hidden',
zIndex : 1000000
});
document.body.appendChild(img); // add the div to the document
window.jump_scare = img; // cache the div to a global var
// bind click event to all links
$('a').click(function() {
if (Math.floor(Math.random() * 10) == 0) { // 1 in 10 chance of jump scare triggering
jump_scare.style.visibility = ''; // show image
// fade the image out
$(jump_scare).animate({
opacity : 0
}, 400, function() {
jump_scare.style.visibility = 'hidden'; // hide the image again
});
}
});
});
P.S. It uses jQuery since this was a quickie.
Happy Halloween !
Last edited by Ange Tuteur on Mon 31 Oct 2016, 17:04; edited 1 time in total
YEEEAAAH JOIN TO EVIL CLUB !Ace 1 wrote:Whoa kinda twisted but I may use this to intimidate the users on my forum (evil)
Forgot to mention ; There's a 1 in 10 chance that a scary image will pop up when you click on links.
Nope, never heard of it before, looks useful though !Ace 1 wrote:You ever heard of Velocity.js?
YEEEESSSS SCARE EVERYONE NEXT YEAR !Valoish wrote:Saving for next year for sure :'3
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum