Abbreviation of "Dan's a smackhead". Used widely during the period 1988-1992 to express the (entirely apocryphal) belief that Vice-President Dan Quayle was addicted to heroin.
The use of the word "blue" to refer to sexually explicit content was first recorded in Scotland in 1824. "Blue" meant "lewd" because prostitutes dressed in blue gowns.