
RJLCustom404 - Custom 404 Page
This script dynamically generates a customizable 404 error page.
Brought to you by RJ Lindelof, available from RJL.codes

Overview
RJLCustom404 is a lightweight and dynamic 404 error page generator that allows users to customize error page content, styles, and images effortlessly. It supports randomized images, dynamic text, button options, and easy integration into any website. If you are an expert in html/css and love to be creative, this project is not for you. This is for developers who want a quick easy way to create 404 pages.
Usage
Download the JavaScript File. Add this to your HTML file before </head> tag:
Make Your Customizations
Options
Option | Default Value |
---|---|
pageTitle | "404 - Not Found" |
bodyBackgroundColor | "white" |
bodyFontColor | "black" |
imgBorderRadius | "50%" |
imgFileNames | [ "/errors/404-1.webp", "/errors/404-2.webp", "/errors/404-3.webp" ] |
automatic404Image | false (we will automatically display one of our 404 images) |
imgBoxShadow | false |
imgBoxShadowSize | "5px" |
imgBoxShadowColor | "rgba(255, 255, 255, 1)" |
btnColor | "blue" |
btnPulsate | true |
btnPulsateCount | 2 |
btnDisplayText | "Back to" |
btnDisplayHostName | true |
actionIsBtn | true |
headerText | "404 - File not found" |
subHeaderText | "" (empty by default) |
headerTextPosition | "top" |