RJLCustom404 Logo

RJLCustom404 - Custom 404 Page Generator

This script dynamically generates a customizable 404 error page with advanced features.

Brought to you by , available from RJL.codes

OverviewOverview

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.

Perfect for developers who want a quick, professional solution for custom 404 pages without extensive CSS knowledge.

UsageInstallation & Usage

Download the JavaScript File from GitHub. Add this code to your HTML file before the </head> tag:

CustomizationsMake Your Customizations

Opens a preview of your customized 404 page in a new tab Resets all customizations to default values

OptionsConfiguration Options

OptionDefault ValueDescription
pageTitle"404 - Not Found"Sets the browser tab title
bodyBackgroundColor"white"Background color of the error page
bodyFontColor"black"Text color for the page content
imgBorderRadius"50%"Border radius for 404 images
imgFileNames[ "/errors/404-1.webp", "/errors/404-2.webp", "/errors/404-3.webp" ]Array of custom 404 images
automatic404ImagefalseUse built-in 404 images automatically
imgBoxShadowfalseAdd shadow effect to images
imgBoxShadowSize"5px"Size of the image shadow
imgBoxShadowColor"rgba(255, 255, 255, 1)"Color of the image shadow
btnColor"blue"Color theme for action buttons
btnPulsatetrueEnable button pulsing animation
btnPulsateCount2Number of pulsing animations
btnDisplayText"Back to"Text displayed on return button
btnDisplayHostNametrueShow hostname in button text
actionIsBtntrueDisplay action as button vs link
headerText"404 - File not found"Main error message heading
subHeaderText"" (empty)Secondary error message
headerTextPosition"top"Position of header text