In the previous chapter, I introduced that a partial area editing module can be added to the masked page. In this chapter, I will introduce the parent page to display the mask layer and pop up a semi-transparent dialog. The dialog is the pop-up subpage, div.
The rendering is as follows:
The specific code implementation is as follows:
New Document <script> <br><br>function showDiv(tag,tid,lawyerName){ <br>var light1=document.getElementById(tag); <br>light1.style.display='block'; <br>document.getElementById('bg').style.display='block'; <br>} <br>function closeDiv(){ <br>document.getElementById('popDiv').style.display='none'; <br>document.getElementById('bg').style.display='none'; <br>} <br><br></script>
< pre>
Peach Blossom Temple (excerpt by Zhang Xiaosi)
Peach Blossom Temple in Taohuawu, and the Peach Blossom Fairy under the Peach Blossom Temple.
The Peach Blossom Fairy plants peach trees and picks peach flowers in exchange for wine money.
When you are sober, you just sit in front of the flowers; when you are drunk, you come to sleep under the flowers.
Drunk and drunk day after day, flowers bloom and fall year after year.
I wish I could die of old age and spend my time drinking wine, and I don’t want to bow before my carriage.
Cars, dust and horses are enough for the rich, and wine-gold branches are good for the poor.
If you compare wealth to poverty, one is on the ground and the other is in the sky.
If flowers and wine are compared to chariots and horses, he has to drive and I have nothing to do.
Others laugh at me for being crazy, but I laugh at others because they can’t see through it.
There are no tombs of heroes from the Five Tombs, and there are no flowers or wine to cultivate the fields. < div id="bg" class="bg" style="display:none;z-index:100;">
appears