Scooby-Doo, Where Are You! (1969) : Hassle in the Castle

The gang gets shipwrecked on an island that happens to be an old lair for a pirate. They find a map, but there is a warning telling them to leave the island. The warning appears justified when a ghost called 'The Phantom' is after them.