RJLCustom404 Logo

RJLCustom404 - Custom 404 Page

This script dynamically generates a customizable 404 error page.

Brought to you by RJ Lindelof, 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. 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.

UsageUsage

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

CustomizationsMake Your Customizations

OptionsOptions

OptionDefault Value
pageTitle"404 - Not Found"
bodyBackgroundColor"white"
bodyFontColor"black"
imgBorderRadius"50%"
imgFileNames[ "/errors/404-1.webp", "/errors/404-2.webp", "/errors/404-3.webp" ]
automatic404Imagefalse (we will automatically display one of our 404 images)
imgBoxShadowfalse
imgBoxShadowSize"5px"
imgBoxShadowColor"rgba(255, 255, 255, 1)"
btnColor"blue"
btnPulsatetrue
btnPulsateCount2
btnDisplayText"Back to"
btnDisplayHostNametrue
actionIsBtntrue
headerText"404 - File not found"
subHeaderText"" (empty by default)
headerTextPosition"top"