I want to Show DIV when page is first time page load and when click the side bar menu I will disappear. My own code is whenever the menu is clicked(page reload) the DIV always appear and gone recently.
Sorry for my bad English :D
if (isset($_GET['ex']))
{
test();
<script>
$("#hello").hide(1000);
</script>
}
Something like this:
<?php
if (isset($_GET['ex'])) {
test();
?>
<script>
$(function() {
$("#hello").show();
$("#sideBar").click(function() {
$('#hello').hide(1000);
});
});
</script>
<?php
}
?>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.