IMPORTANT

FM Design will be closing soon, please click here for more information.

Latest topics
» Forum Closure
by Michael_vx Yesterday at 05:52

» Forumactif Edge - Releases
by Ange Tuteur Thu 14 Dec 2017, 11:25

» [GAME] Count to One Million!
by Valoish Wed 13 Dec 2017, 23:23

» [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

» Numbering of messages in the topic
by SLGray Mon 04 Dec 2017, 22:40

» Support Forums and Social Networks
by SLGray Mon 04 Dec 2017, 22:38

» Browsers & Updates
by Wolfuryo Mon 04 Dec 2017, 15:20

» Logo/Favicon
by Mr_Grande Mon 04 Dec 2017, 09:55

» Broadcasting Duo
by brandon_g Sun 03 Dec 2017, 11:01

Recent Tutorials
Who is online?
In total there are 6 users online :: 0 Registered, 0 Hidden and 6 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Scary face

View previous topic View next topic Go down

avatar
Bigtuber

Title :
Gender : Male
Posts : 125
Points : 886
Reputation : 51
Location : Germany
Language : German, English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostBigtuber on Mon 31 Oct 2016, 15:11

You got me, Ange. Humor
Wow, this was unexpected. Héhé..

--------

avatar
Valoish
Graphic Designer
Title :
Gender : Female
Age : 21
Posts : 3657
Points : 4809
Reputation : 358
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Opera Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://www.canvasforums.com https://twitter.com/Valoishx3

PostValoish on Mon 31 Oct 2016, 15:13

Gave me a heart attack at school ; A;
Listening to instrumental music while studying and then I check this forum and bam
Rip my life x_x

--------

"I was afraid. And my own insecurity crushed him." - Youku x Boku SS
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4718
Points : 9625
Reputation : 2346
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Mon 31 Oct 2016, 15:18

I see you two met our other worldly friends ! No worries they wont bite ( I think >.> ), might scare the crap outta you though. Naughty

Anyone know a good exorcist ?
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4718
Points : 9625
Reputation : 2346
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Mon 31 Oct 2016, 16:50

If anyone is up for scaring their members, here's the script. Twisted Evil

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
      });
    }
  });
});
Once the script is installed there's a 1 in 10 chance that a scary image will pop up when you click on links.

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
avatar
Ace 1
Valued Member
Title :

Beta Tester
Gender : Unspecified
Age : 18
Posts : 2153
Points : 2982
Reputation : 92
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Mon 31 Oct 2016, 16:59

Whoa kinda twisted but I may use this to intimidate the users on my forum (evil)
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4718
Points : 9625
Reputation : 2346
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Mon 31 Oct 2016, 17:03

@Ace 1 wrote:Whoa kinda twisted but I may use this to intimidate the users on my forum (evil)
YEEEAAAH JOIN TO EVIL CLUB ! Twisted Evil

Forgot to mention ; There's a 1 in 10 chance that a scary image will pop up when you click on links.
avatar
Ace 1
Valued Member
Title :

Beta Tester
Gender : Unspecified
Age : 18
Posts : 2153
Points : 2982
Reputation : 92
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Mon 31 Oct 2016, 17:13

Yep. Line 39.

And line 45 the
Code:
400
is how long the image will remain on screen. right?
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4718
Points : 9625
Reputation : 2346
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Mon 31 Oct 2016, 17:22

Yep, it stays on screen for 400ms. It uses jQuery's animate() for the smooth transition. Probably could've used fadeOut() instead. Been awhile since I used it that I forgot lol.
avatar
Ace 1
Valued Member
Title :

Beta Tester
Gender : Unspecified
Age : 18
Posts : 2153
Points : 2982
Reputation : 92
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Mon 31 Oct 2016, 17:24

You ever heard of Velocity.js?
avatar
Valoish
Graphic Designer
Title :
Gender : Female
Age : 21
Posts : 3657
Points : 4809
Reputation : 358
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Opera Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://www.canvasforums.com https://twitter.com/Valoishx3

PostValoish on Mon 31 Oct 2016, 17:59

Saving for next year for sure :'3

--------

"I was afraid. And my own insecurity crushed him." - Youku x Boku SS
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4718
Points : 9625
Reputation : 2346
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 01 Nov 2016, 10:52

@Ace 1 wrote:You ever heard of Velocity.js?
Nope, never heard of it before, looks useful though ! Surprised

@Valoish wrote:Saving for next year for sure :'3
YEEEESSSS SCARE EVERYONE NEXT YEAR ! Razz
avatar
Valoish
Graphic Designer
Title :
Gender : Female
Age : 21
Posts : 3657
Points : 4809
Reputation : 358
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Opera Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://www.canvasforums.com https://twitter.com/Valoishx3

PostValoish on Tue 01 Nov 2016, 11:28

For sure ;3 Keeping it a secret from the other admins too Razz
/PrayingHaeDoesntLogOn

--------

"I was afraid. And my own insecurity crushed him." - Youku x Boku SS
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4718
Points : 9625
Reputation : 2346
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 01 Nov 2016, 12:03

She's lucky she wasn't here on Halloween. Razz
avatar
Valoish
Graphic Designer
Title :
Gender : Female
Age : 21
Posts : 3657
Points : 4809
Reputation : 358
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Opera Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://www.canvasforums.com https://twitter.com/Valoishx3

PostValoish on Tue 01 Nov 2016, 13:29

LOL. I KNOW. She would have died cuz she gets scared easily 
Rip her next year on Canvas though LOLOL. c;<

--------

"I was afraid. And my own insecurity crushed him." - Youku x Boku SS

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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