Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Shadowbox help!

Featured Replies

Hi all

 

I am trying to setup shadowbox on my website so it will display images. I am having a nightmare with it because i am not a developer!

 

I have resorted in taking it back to its simplest form and that is start with a blank document with the 'test' in it. When you click on test, the shadowbox is supposed to appear with the image in it but it doesnt!

 

See here www.proposedsite.co.uk/shadowbox/javatest.html

 

I have copied the code into the HEAD tags like it said, and i have added the rel = "shadowbox" code into the link but still nothing!!

 

Here is my code:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<link rel="stylesheet" type="text/css" href="shadowbox.css">

<script type="text/javascript" src="shadowbox.js"></script>

<script type="text/javascript">

Shadowbox.init();

</script>

 

<meta http-equiv="Content-Type" content="text/css; charset=iso-8859-1" />

<title>Untitled Document</title>

</head>

 

<body>

<a href="images/yourcall_mag_large.jpg" rel="shadowbox">test</a>

</body>

</html>

 

 

Can anyone tell me what i am doing wrong? :help:

<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script>

 

there's nothing at http://www.proposedsite.co.uk/shadowbox/shadowbox.js or http://www.proposedsite.co.uk/shadowbox.js (and the same for the css).

 

you need to enter the correct URL for the href and src in the code above. At the moment the css and js is not being loaded.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.