dollcrds

neocities tutorial #4 html

Oct 28th, 2025 (edited)
883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. // note - codes will not look correct until ALL css and html has been copied in
  2. // container positioning and top css title bar
  3. <div class="container">
  4.  
  5. <link rel="stylesheet" href="https://unpkg.com/xp.css">
  6. <div class="title-bar">
  7. <div class="title-bar-text">text goes here</div>
  8. <div class="title-bar-controls">
  9. <a href="link goes here" target="_blank"><button aria-label="Close"></button></a>
  10. </div>
  11. </div>
  12.  
  13. // main and menu containers, text, and images
  14. // width of images can be adjusted
  15. <div class="main">
  16. Select a picture to represent you that others will see in instant message conversations:
  17. <div class="top">Display picture</div>
  18. <div class="bottom">
  19. <div class="images">
  20. <img src="IMG LINK HERE" style="width: 75px; display: block;">
  21. <img src="IMG LINK HERE" style="width: 75px; display: block;">
  22. <img src="IMG LINK HERE" style="width: 75px; display: block;">
  23. <img src="IMG LINK HERE" style="width: 75px; display: block;">
  24. <img src="IMG LINK HERE" style="width: 75px; display: block;">
  25. </div>
  26.  
  27. // menu text leading to pages of site
  28. // if more or less pages needed, add more lines or delete lines
  29. <div class="text">
  30. <a onclick="loadPage('page1')"><highlight>text goes here</highlight></a><br>
  31. <a onclick="loadPage('page2')"><highlight>text goes here</highlight></a><br>
  32. <a onclick="loadPage('page3')"><highlight>text goes here</highlight></a><br>
  33. <a onclick="loadPage('page4')"><highlight>text goes here</highlight></a><br>
  34. <a onclick="loadPage('page5')"><highlight>text goes here</highlight></a></div>
  35.  
  36. </div>
  37.  
  38. // buttons and preview text on the side, "download more pictures" linked text below the scrollbox
  39. <div class="next">
  40. <button style="color: black !important;">Browse...</button><br><br>
  41. <button style="color: black !important;">Remove</button><br><br>
  42. Preview
  43. </div>
  44.  
  45. <div class="link">
  46. <a href="link goes here" target="_blank">Download more pictures...</a>
  47. </div>
  48.  
  49. // all 5 scrollbox pages, add or delete as desired, only thing u need to edit is the picture/text
  50. <div id="content">
  51. </div>
  52.  
  53. <script>
  54. const pages = {
  55. page1: `<div class="lyrics"><figure class="blurfilter slidey">
  56. <img src="IMG LINK HERE">
  57. <figcaption>
  58. text goes here (use <br> for line breaks)
  59. </figcaption>
  60. </figure></div>`,
  61. page2: `<div class="lyrics"><figure class="blurfilter slidey">
  62. <img src="IMG LINK HERE">
  63. <figcaption>
  64. text goes here (use <br> for line breaks)
  65. </figcaption>
  66. </figure></div>`,
  67. page3: `<div class="lyrics"><figure class="blurfilter slidey">
  68. <img src="IMG LINK HERE">
  69. <figcaption>
  70. text goes here (use <br> for line breaks)
  71. </figcaption>
  72. </figure></div>`,
  73. page4: `<div class="lyrics"><figure class="blurfilter slidey">
  74. <img src="IMG LINK HERE">
  75. <figcaption>
  76. text goes here (use <br> for line breaks)
  77. </figcaption>
  78. </figure></div>`,
  79. page5: `<div class="lyrics"><figure class="blurfilter slidey">
  80. <img src="IMG LINK HERE">
  81. <figcaption>
  82. text goes here (use <br> for line breaks)
  83. </figcaption>
  84. </figure></div>`,
  85. };
  86.  
  87. function loadPage(pageKey) {
  88. document.getElementById('content').innerHTML = pages[pageKey];
  89. }
  90.  
  91. loadPage('page1');
  92. </script>
  93.  
  94. // end divs and 3 buttons at the bottom (margins can be adjusted)
  95. <div class="buttons">
  96. <button style="margin-right: 155px; color: black !important;">OK</button><button style="margin-right: 155px; color: black !important;">Cancel</button><button style="color: black !important;">Help</button>
  97. </div>
  98.  
  99. </div>
  100.  
  101. </div>
Advertisement
Add Comment
Please, Sign In to add comment