They act like vertical ropes from the original Donkey Kong Country, except disappearing and reappearing constantly. These ropes can help Diddy and Dixie Kong to reach high places and get across pits, but if they disappears while the Kongs are still clinging on, the ghosts will drop down the primates. Ghost Ropes indicate they are about to disappear by flashing for a few seconds.
Donkey Kong Country 2
Donkey Kong Land 2
In Donkey Kong Country 3: Dixie Kong's Double Trouble!, there are similar entities called Ghost Barrels.