webnovel

Some pages had a table of contents at the front and the main text at the back. When you clicked on the table of contents, it would automatically jump to the corresponding chapter. How was it to be realized?

2024-09-14 22:14
May I ask if there are some web pages with a table of contents at the front and a main text at the back? When you click on the previous table of contents, it will automatically jump to the corresponding chapter. Such a webpage was probably a combination of multiple webpages. It should be something that static webpages could achieve! How to achieve it
1 answer
2024-09-14 22:33

To achieve such a function, you usually need to use the combination of the table of contents and the main body to create a transition effect. 1. Use the CSSS-style to create the table of contents and the body of the text in the document. ```html <!DOCTYPE html> <html> <head> <title>novel website</title> <style> /* Create a table of contents style */ Table of contents margin: 0 auto; width: 30%; text-align: center; } /* Create a body style */ Text: margin: 0 auto; width: 70%; text-align: center; } </style> </head> <body> &lt;br&gt;&lt;br&gt;&lt;br&gt; Class: &lt;br&gt; Class: <h1>Contents 1</h1> <p>chapter one</p> </div> &lt;br&gt;&lt;br&gt;&lt;br&gt; Body <h1>Text 1</h1> <p>chapter two</p> <p>chapter three</p> <p>chapter four</p> </div> <!-- 使用 JavaScript 创建点击事件当点击目录时跳转到相应的章节 --> <script> //Get the catalog element &lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt; //Get the body element &lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/strong&gt; //Create a click event addEventListener(click function() { //Get the current chapter index var chapter = thisgetAttribute( chapter) || 0; //If the current index is equal to the current chapter index, jump to the corresponding chapter if ( chapter === 1 ) { Chapter 1: } else if ( chapter === 2 ) { The main text is the second chapter. } else if ( chapter === 3 ) { Chapter 3: } else if ( chapter === 4 ) { Chapter 4: } }); </script> </body> </html> ``` In this style, we used the CSS-generated table of contents and the body style. The table of contents used `margin: 0 auto;` to achieve the self-adapting margin;`margin: 0 auto;` and `width: 70%;` to achieve the self-adapting width and center display. In javelin, use `documentqueryListener (table of contents)` to get the table of contents element, use `thisgetAttribute( chapter)` to get the index of the current table of contents and jump to the corresponding chapter according to the current index.`thisgetAttribute( chapter)` returns the index of the current table of contents. If the index of the current table of contents is not equal to the index of the current chapter, use `nextElementSibling` to get the next chapter element and update its text content. When the user clicks on the table of contents, the 'margin: 0 auto;' and 'width: 70%;' in the CSS-style will be automatically applied to the table of contents and the main body element to achieve the transition effect between the table of contents and the main body. That is, when the table of contents is clicked, the user will automatically jump to the corresponding chapter.

When writing a report or a book, is the foreword at the front of the table of contents or included in the table of contents?
1 answer
2024-09-23 09:47
When writing a report or book, the foreword should usually be at the front of the table of contents rather than included in it. This is because the preface is a brief introduction to the subject, purpose, meaning, structure, and other information of the book or report. It usually helps the reader understand the overall framework and structure of the book or report before the table of contents so that they can better read and understand the content. If the foreword is included in the table of contents, it may distract the readers from clearly understanding the overall structure and content of the book or report. Therefore, the foreword should be placed before the table of contents to attract the reader's attention and help them better understand the subject and content of the book or report.
How to open the chapter table of contents
1 answer
2024-09-20 01:04
If you are reading a novel, you can open the chapter table of contents by following these steps: 1 Open the novel and click on the chapter you are reading. 2. You should see the "Chapter Table of Changes" button under the chapter title. This button would open the chapter table of contents. 3 After opening the chapter table of contents, you can follow the hints in the table of contents to browse to the chapter you want to read and click on the chapter title to start reading. I hope this method can help you open the chapter table of contents of the Cajav novel.
Excel, the data has a table of contents before, is there any indication of the table of contents at the back?
1 answer
2024-09-23 17:43
If you import the same or similar data into a previously established catalog in Excel, Excel will automatically identify and update the catalog. This way, you can easily find and import data without worrying about the catalog being outdated or wrong. In addition, Excel can automatically convert the file names and folder names in the table of contents into the correct format for better display and search of data. This also helped to avoid problems with the wrong name of the catalog or the inability to locate the data correctly when the data was imported. In short, by establishing and updating the Excel table of contents, the efficiency of data import and search could be improved, and the accuracy and compatibility of the data could be ensured.
Do you know the contents of a chapter in a table of contents but forget the title?
1 answer
2024-09-09 14:56
"Memory Corridor" is a light novel written by Night Walker Z. It's a fantasy novel. The general plot of this novel is as follows: Memories were a person's past, a person's memories, a person's treasure. At the same time, they could also change a person. Painful memories made people struggle, happy memories made people jump for joy, and painful memories made people work hard. In the long river of memories, there were always endless stories. Have you ever thought about what you would look like after losing all your memories? You don't remember the happiness, sadness, and past; You also don't remember your friends, relatives, and lovers; You don't even remember your name, occupation, or what you've experienced. Searching for oneself and retrieving lost memories was the theme of the Memory Corridor. However, the process of searching was a little difficult, painful, and often accompanied by danger. People desperately wanted to reach the end of the corridor, but what would be waiting for them at the end of the corridor? ---------------------------- Lost: Minecraft was a game novel written by the author, Xu Sandi. The general plot of the novel was: He didn't know when it started, but his memories had become so blurry. She had forgotten many people and many things. For one person, he suddenly wanted to find back everything he had lost, even though someone told him that it was a road with no return. ---------------------------- Oblivion Descends was a novel written by the author, Melody Under the Moon. The general plot of the novel was: In this ever-changing and unstable world, one second it was the era of cold weapons, the next second it could become StarCraft, one second it was planes, cannons, rocket launchers, the next second it could become fireballs, lightning, Holy Light. With this unexplainable phenomenon, people would naturally be brought into a new life role and forget everything that happened in the previous second. Forgetting meant not remembering. Who are you? Who am I? What was wrong with this world? How to unravel the truth of the world? Could it restore stability? Could he not forget? ---------------------------- " Where are the Scattered Lands?" This book was a modern romance novel written by the author, Rainfall's Millet. The general plot of this novel was: Everyone more or less had similar experiences. There were regrets, and there were also disappointments. There were also times when they wanted to look back but found that they could no longer find the past. The past buried deep in their hearts pushed us forward all the way to maturity, learning to forget, and knowing how to hide. ---------------------------- " Sorry for Forgetting You, I Love You " was a real-life novel about family and relationships written by the author Ba Shu. The general plot of this novel was: Zeng Niannian, who was lost in the workplace and had forgotten why she had started out in the first place, became depressed and could no longer continue working. She realized that she was getting more and more forgetful. In order to keep the people and things that were important to her, Grandma Hua, who had dementia, chose to write in a diary until she forgot everything in the diary… From forgetting to leaving, Zeng Niannian had found a new direction and the value of life! ---------------------------- Life Severing Stage Expert was a fantasy novel written by Feng Yusheng. The general plot of the novel was: Time passed by in a hurry, and she forgot when it started. A blank space occupied her memory, as if she had woken up for a long time and was guarding something hazy. ---------------------------- Memory Editor was a suspense novel written by the author, Heavenly Dream Bitter Moon. The general plot of this novel was: The new book," This NPC's blue is only 100 points," has been released. What would you do if you could modify other people's memories one day? ---------------------------- " The Elven Heir " was a fantasy-epic fantasy novel written by the author Er Ning. The general plot of the novel was: I have returned from the endless sea of knowledge, but the world has already forgotten my name. ---------------------------- " King's Legacy " was a game novel written by the author, He Feiyu. The general plot of this novel was: Kai, who had lost his memories, walked out of the desert and began a journey to find his memories. ---------------------------- " The Way to Control a Husband: CEO, You've Lost Your Morality " was a modern romance novel written by the author, Lin Mengyuan. The general plot of this novel was: "Do you still remember who I am?" The boy stood in front of her and asked inquisitively. Uh…could she really say that she didn't know? Looking at her expression, the boy guessed something. He shook his head slightly and said," You've forgotten about me. It's okay. We'll have plenty of time to get to know each other in the future."
Why is it that when I set up the table of contents page with WPS, some chapters are not entered into the table of contents? How can I set up a chapter name to appear in the table of contents page?
1 answer
2024-09-16 04:39
When using WPS to set up the table of contents page, some chapters might not be entered into the table of contents. This was because WPS did not automatically check whether all the chapter names had been entered into the table of contents when creating the table of contents page. To solve this problem, you can follow the following steps: 1 Open the table of contents page in WPS and make sure that all the chapter names have been entered correctly. 2. Choose the text you want to enter into the chapter name and click the "edit" button. In the pop-up edit box, select the "autocorrect" tab. 3 In the "Automatic Correct" tab, check the "Automatic Correct Spelling and grammar" option and click "OK". Re-open the table of contents page to make sure that all the chapter names are displayed correctly. 5 If there are still chapters that have not been entered into the table of contents, you can check whether the chapter title has been entered correctly and whether it is in the correct format. If you still have problems, you can try to upgrade or update the WPS version or contact the WPS technical support team for help. To make a chapter name appear in the table of contents page, you can follow the steps above in WPS: 1. Choose the text to enter the chapter name and click the "edit" button. In the pop-up edit box, select the "autocorrect" tab. 2 In the "Automatic Correct" tab, uncheck the "Automatic Correct Spelling and grammar" option and click "OK". 3 In the "Check all grammar" box that popped up, select "Check all" and click "OK". Re-open the table of contents page to make sure that all the chapter names are displayed correctly. 5 If there are still chapters that have not been entered into the table of contents, you can check whether the chapter title has been entered correctly and whether it is in the correct format. If you still have problems, you can try to upgrade or update the WPS version or contact the WPS technical support team for help.
Martial Yin Yang Chapter 30 Table of contents
1 answer
2024-09-19 18:33
As someone who loves reading novels, I don't have real-time access to the latest updates. Also, the last 30 chapters of Martial Yin Yang have not been released yet, so I can't provide an accurate table of contents for the last 30 chapters. It is recommended to follow the official channels of the novel or other reliable sources of novel information to obtain the latest information.
How to click on the table of contents when there are rabbits to read?
1 answer
2024-09-12 04:35
You Tu Reading is an excellent novel. The application method is as follows: 1 On the application's home page, click on the "Catalog" button to enter the catalog navigation interface. 2. In the table of contents navigation interface, you can manually enter or search for the chapter title or author name of the novel. Then, you can click on the corresponding chapter title or author name to enter the details page of the chapter. 3 If you want to quickly jump to the next story or chapter on the current page, you can click the "Back" button in the upper right corner of the page or press the "Enter" key on the keyboard to return to the table of contents navigation interface. I hope these steps will help you properly use the contents function of the book.
How to structure the table of contents of novels?
1 answer
2024-10-15 01:14
It depends on the genre and the story's complexity. Usually, start with a main chapter outline and then break it down into subsections for each major plot point or character arc.
How to make a table of contents for a novel?
3 answers
2024-10-04 17:14
It's not too complicated. Just list the main chapters and their titles in a clear and organized way. Maybe add some subheadings if needed.
Why was there a conclusion in the table of contents?
1 answer
2024-09-23 18:01
In a novel, the table of contents is usually used to indicate parts of the story and to help the reader better understand the structure of the story. The content in the table of contents, such as the conclusion, can provide readers with additional information and background knowledge to help them better understand the plot and characters of the novel. For example, in the content of a science fiction novel, the conclusion might describe the alien civilization or future world involved in the novel and provide background knowledge and explanations about these topics. The table of contents can also provide readers with additional plot clues such as the relationship between the main characters or the development of events so that they can better understand the plot and theme of the story. The content in the table of contents such as the conclusion can help readers better understand the plot and theme of the novel and improve the reading experience.
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z