The Secret Squirrel Show (1965) : Captain Kidd's Not Kidding

Secret and Morocco go aboard a Spanish galleon to investigate the ghost of Captain Kidd, who is actually Yellow Pinkie seeking gold.