User:Ichindar/common.js
From Brickipedia, the LEGO Wiki
- Page tools
- What links here
- Related changes
- Printable version
- Permanent link
- Page information
- User tools
- User contributions
- Logs
- View user groups
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
if (document.getElementById('img1-2')){
document.getElementById('btns-1').style.display="inline";
document.getElementById('btn1-2').style.display="inline";
}
if (document.getElementById('img1-3')){
document.getElementById('btns-1').style.display="inline";
document.getElementById('btn1-3').style.display="inline";
}
$( "#btn1-2" ).click(function() {
$("#img1").hide();
$("#img1-3").hide();
$("#img1-2").show();
$("#btn1-1").css("background", "#CCCCFF");
$("#btn1-3").css("background", "#CCCCFF");
$("#btn1-2").css("background", "#9999FF");
});
$( "#btn1-3" ).click(function() {
$("#img1").hide();
$("#img1-2").hide();
$("#img1-3").show();
$("#btn1-1").css("background", "#CCCCFF");
$("#btn1-2").css("background", "#CCCCFF");
$("#btn1-3").css("background", "#9999FF");
});
$( "#btn1-1" ).click(function() {
$("#img1-2").hide();
$("#img1-3").hide();
$("#img1").show();
$("#btn1-3").css("background", "#CCCCFF");
$("#btn1-2").css("background", "#CCCCFF");
$("#btn1-1").css("background", "#9999FF");
});