The events at the origin will be removed after using the replacewith.
So, if you want to keep the events on the nodes, you can just replace the contents of the nodes for the purpose! Does not replace the event that has been kidnapped.
. Read_box{Height:480px;background:#141414;position:Absolute;Z-index:99999;Top:25%;width:80%; Left:10%;Z-index:-999;
/*to use the Scrollbar.js file, this container must be set to display the block, not using JS to do the action. But after that, you can set up display! */}. Scroll_wrap{position:relative;Height:280px;width:80%;margin:0px Auto;Overflow:Hidden; }#dv_scroll{position:Absolute;Height:700px;width:89%;font-size:14px;font-family:"Creative arts and Crafts complex line";Overflow:Hidden;padding:20px; }#dv_scroll. Scroller-container{width:100%;}#dv_scroll_text{Word-break:Break-all;Word-wrap:Break-word;Color:#6c6c6c; }#dv_scroll_text P{Line-height:180%; }#dv_scroll_bar{position:Absolute; Right:0;Top:0px;width:6px;Height:310px;background:#484642;}#dv_scroll_bar. Scrollbar-track{position:Absolute; Left:0;Top:0px;width:6px;Height:270px;}#dv_scroll_bar. Scrollbar-handle{position:Absolute; Left:0px;Top:0;width:6px;Height:70px;Overflow:Hidden;background:#cdc1aa;cursor:Pointer;}#dv_scroll_text{position:Absolute;}. News_x_content{Display:None; }
varOplay = $ (' #news. Play '); varP_len =oplay.length; for(varp = 0; P < P_len; p++) {Oplay[p].idx=p; } $('. Close '). Click (function() { $('. Read_box '). FadeOut (' slow ')); }); $(' #news. Play '). Click (function() { $('. Read_box. R_title h2 '). HTML ($ ('. News_x_content '). EQ ( This. idx). Find (' span '). HTML ()); $('. Read_box. R_title h3 '). HTML ($ ('. News_x_content '). EQ ( This. idx). Find (' strong '). HTML ()); $('. Read_box #dv_scroll_text '). HTML ($ ('. News_x_content '). EQ ( This. idx). Find (' div '). HTML ()); $('. Read_box '). css ({' Z-index ': 9999}). FadeIn (' slow ')); });
<Divclass= "Scr_con"> <DivID= "Dv_scroll"> <DivID= "Dv_scroll_text"class= "Scroller-container"> <P>Afdsafdsafdsafddsafdsafdsafdsafdsafdsafdsafdsafdsafddsafdsafdsa</P> </Div> </Div><!--Dv_scroll End - <DivID= "Dv_scroll_bar"> <DivID= "Dv_scroll_track"class= "Scrollbar-track"> <Divclass= "Scrollbar-handle"></Div> <!--This is a drag -and-drop article. - </Div> </Div><!--Dv_scroll_bar End - </Div><!--Scr_con End -
Rolling article beautification source code: http://www.divcss5.com/css-texiao/texiao695.shtml