파이어 폭스 호환성질문...;
----------------------------------------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript">function side_content() {
if(sidecontent.style.display != "none") {
sidecontent.style.display = "none";
sidebtn.src="<?=$g4[path]?>/img/btn_side_open.png";
} else {
sidecontent.style.display = "block";
sidebtn.src="<?=$g4[path]?>/img/btn_side_close.png";
}
}
</SCRIPT>
----------------------------------------------------------------------------------------
<style type="text/css">
#sidecontent { position:relative; display:block; width:250px; height:100%; background-color:#f4f4f4;}
#sidecontent .menu-content { margin:5px 0 0 0; border-top:1px solid #D9D9D9; border-bottom:1px solid #D9D9D9; background-color:#EFEFEF; padding:5px; }
#sidecontent .menu-content a { letter-spacing:-1px; color:#484848; padding:0 5px 0 5px; }
#sidecontent .menu-content a:hover { text-decoration:underline; }
#sidecontent .menu-content .menuline { margin:5px 0 5px 0; }
.btn_side { position:fixed; top:50%; bottom:50%; vertical-align: middle; text-align:center; }
</style>
----------------------------------------------------------------------------------------
<table id="left">
<td><div align="left" valign="top" id="sidecontent">
<div class="latest">test</div>
</div></div></td><td>
<a href="#" onclick="side_content();" style="cursor:hand;" class="btn_side"><img name="sidebtn" src="<?=$g4[path]?>/img/btn_side_close.png" border="0"></a></td>
</table>
----------------------------------------------------------------------------------------
<!-- btn_side_close.png 이미지를 클릭하면 왼쪽에서사이드컨텐츠가 사라지며 btn_side_close.png 이미지가 btn_side_open.png 이미지로 바뀐다. 또한 btn_side_open.png 이미지를 클릭하면 사이드컨텐츠가 나타나며 btn_side_close.png 이미지로 바뀐다. -->
요거 다른브라우저에서는 정상적으로 작동하는데 파이어폭스에서만 작동하지않아요..;
어디를 어떻게 수정해야 정상적으로 파이어폭스에서도 작동하는지에대한 방법을 질문합니다.
댓글 5개
13년 전
<scRIPT LANGUAGE="Javascript">
var side_content = function() {
var __sidecontent = document.getElementById('sidecontent');
var __sidebtn = document.getElementById('_sidebtn');
if(__sidecontent.style.display != "none") {
__sidecontent.style.display = "none";
__sidebtn.src="/img/btn_side_open.png";
} else {
__sidecontent.style.display = "block";
__sidebtn.src="/img/btn_side_close.png";
}
}
</scRIPT>
var side_content = function() {
var __sidecontent = document.getElementById('sidecontent');
var __sidebtn = document.getElementById('_sidebtn');
if(__sidecontent.style.display != "none") {
__sidecontent.style.display = "none";
__sidebtn.src="/img/btn_side_open.png";
} else {
__sidecontent.style.display = "block";
__sidebtn.src="/img/btn_side_close.png";
}
}
</scRIPT>
13년 전
답변 ㄳ합니다. 정상작동확인ㅎ;
13년 전
그런데 이미지가 btn_side_close.png 로만 보이네요ㅎㄷ
btn_side_open.png로 바뀌질 않아요...;
btn_side_open.png로 바뀌질 않아요...;
13년 전
img에 id='_sidebtn' 이것 넣어주어야 함
13년 전
정상작동확인 완료 ㄳ합니다^^;
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4092 | ||
| 429 | 19년 전 | 3288 | ||
| 428 | 19년 전 | 4122 | ||
| 427 | 19년 전 | 3465 | ||
| 426 | 19년 전 | 3098 | ||
| 425 | 19년 전 | 3393 | ||
| 424 | 19년 전 | 2434 | ||
| 423 | 19년 전 | 2848 | ||
| 422 | 19년 전 | 2337 | ||
| 421 | 19년 전 | 3702 | ||
| 420 | 19년 전 | 4728 | ||
| 419 | 19년 전 | 3782 | ||
| 418 |
|
19년 전 | 1731 | |
| 417 | 19년 전 | 2737 | ||
| 416 | 19년 전 | 2383 | ||
| 415 | 19년 전 | 2601 | ||
| 414 | 19년 전 | 4399 | ||
| 413 |
|
19년 전 | 2584 | |
| 412 | 19년 전 | 3033 | ||
| 411 |
|
19년 전 | 2981 | |
| 410 |
|
19년 전 | 3667 | |
| 409 |
|
19년 전 | 3623 | |
| 408 |
|
19년 전 | 1846 | |
| 407 | 19년 전 | 2219 | ||
| 406 | 19년 전 | 2772 | ||
| 405 | 19년 전 | 2437 | ||
| 404 | 19년 전 | 4291 | ||
| 403 | 19년 전 | 3295 | ||
| 402 |
NeoGenesis
|
19년 전 | 4084 | |
| 401 | 19년 전 | 2595 | ||
| 400 |
|
19년 전 | 2483 | |
| 399 | 19년 전 | 2945 | ||
| 398 | 19년 전 | 2478 | ||
| 397 | 19년 전 | 2774 | ||
| 396 | 19년 전 | 2461 | ||
| 395 | 19년 전 | 3169 | ||
| 394 | 19년 전 | 1707 | ||
| 393 | 19년 전 | 2984 | ||
| 392 | 19년 전 | 2242 | ||
| 391 | 19년 전 | 2172 | ||
| 390 | 19년 전 | 2272 | ||
| 389 | 19년 전 | 2637 | ||
| 388 | 19년 전 | 2139 | ||
| 387 | 19년 전 | 4472 | ||
| 386 |
|
19년 전 | 2675 | |
| 385 |
|
19년 전 | 2469 | |
| 384 | 19년 전 | 2993 | ||
| 383 | 19년 전 | 3039 | ||
| 382 | 19년 전 | 3092 | ||
| 381 |
|
19년 전 | 2624 | |
| 380 |
|
19년 전 | 3004 | |
| 379 | 19년 전 | 2541 | ||
| 378 | 19년 전 | 2199 | ||
| 377 | 19년 전 | 2773 | ||
| 376 | 19년 전 | 2464 | ||
| 375 |
|
19년 전 | 2550 | |
| 374 | 19년 전 | 3800 | ||
| 373 | 19년 전 | 3258 | ||
| 372 | 19년 전 | 4979 | ||
| 371 |
세은아빠2
|
19년 전 | 2405 | |
| 370 | 19년 전 | 4495 | ||
| 369 | 19년 전 | 3100 | ||
| 368 | 19년 전 | 2884 | ||
| 367 | 19년 전 | 3719 | ||
| 366 | 19년 전 | 2632 | ||
| 365 | 19년 전 | 3723 | ||
| 364 | 19년 전 | 4003 | ||
| 363 | 19년 전 | 3427 | ||
| 362 | 19년 전 | 3470 | ||
| 361 | 19년 전 | 4091 | ||
| 360 |
hwatta
|
19년 전 | 2352 | |
| 359 | 19년 전 | 5092 | ||
| 358 | 19년 전 | 3645 | ||
| 357 | 19년 전 | 2584 | ||
| 356 |
sdesign1s
|
19년 전 | 2266 | |
| 355 | 20년 전 | 2735 | ||
| 354 | 20년 전 | 3019 | ||
| 353 | 20년 전 | 2784 | ||
| 352 |
|
20년 전 | 5762 | |
| 351 |
|
20년 전 | 2695 | |
| 350 |
|
20년 전 | 4281 | |
| 349 |
hwatta
|
20년 전 | 2174 | |
| 348 | 20년 전 | 7299 | ||
| 347 | 20년 전 | 2405 | ||
| 346 | 20년 전 | 3491 | ||
| 345 | 20년 전 | 4296 | ||
| 344 | 20년 전 | 2626 | ||
| 343 | 20년 전 | 3910 | ||
| 342 | 20년 전 | 3054 | ||
| 341 | 20년 전 | 4078 | ||
| 340 |
|
20년 전 | 5118 | |
| 339 |
|
20년 전 | 4222 | |
| 338 | 20년 전 | 5851 | ||
| 337 | 20년 전 | 2028 | ||
| 336 |
|
20년 전 | 3303 | |
| 335 |
|
20년 전 | 3528 | |
| 334 |
|
20년 전 | 2910 | |
| 333 |
hwatta
|
20년 전 | 2423 | |
| 332 | 20년 전 | 4644 | ||
| 331 | 20년 전 | 2259 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기