ASX Latest Accidents: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<head> | <head> | ||
<style> | <style> | ||
#iframeBox { | |||
position: relative; | position: relative; | ||
width: 820px; | width: 820px; | ||
overflow: hidden; | overflow: hidden; | ||
transition: height 0. | transition: height 0.3s ease-in-out; | ||
} | } | ||
#iframeBox iframe { | |||
position: absolute; | position: absolute; | ||
top: | top: 0; | ||
left: | left: 0; | ||
width: 800px; | width: 800px; | ||
border: none; | |||
z-index: | z-index: 1; | ||
} | } | ||
#overlayBanner { | |||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
width: 800px; | width: 800px; | ||
height: | height: 60px; | ||
z-index: 999; | |||
pointer-events: none; | |||
} | } | ||
.toggle-button { | .toggle-button { | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
padding: 6px 12px; | |||
background-color: #222; | background-color: #222; | ||
color: #fff; | color: #fff; | ||
border: none; | border: none; | ||
border-radius: 4px; | border-radius: 4px; | ||
font-family: Arial, sans-serif; | |||
font-size: 14px; | |||
cursor: pointer; | |||
} | } | ||
</style> | </style> | ||
<script> | <script> | ||
function | let expanded = false; | ||
const | function toggleView() { | ||
const box = document.getElementById('iframeBox'); | |||
const iframe = document.getElementById('asxFrame'); | |||
if (expanded) { | |||
box.style.height = '200px'; | |||
iframe.style.height = '200px'; | |||
} else { | |||
box.style.height = '600px'; | |||
iframe.style.height = '580px'; | |||
} | |||
expanded = !expanded; | |||
} | } | ||
</script> | </script> | ||
Line 61: | Line 59: | ||
<body> | <body> | ||
<button class="toggle-button" onclick="toggleView()">Toggle View</button> | |||
<div id="iframeBox" style="height:200px;"> | |||
<img id="overlayBanner" src="https://wiki.alsresume.com/images/a/a8/Think4.jpg" /> | |||
<iframe id="asxFrame" | |||
</ | src="https://www.alsresume.com/asx-latest-accidents2/" | ||
height="200" | |||
scrolling="yes"> | |||
</iframe> | |||
</div> | </div> | ||
Revision as of 11:00, 22 April 2025

