webnovel
How did JQ create such an effect? What should I add to the auto-read novel function that automatically scrolls 100px every second?

How did JQ create such an effect? What should I add to the auto-read novel function that automatically scrolls 100px every second?

2024-09-17 21:18
1 answer

To achieve an auto-scrolling 100px novel reading function every 1 second in jquery, you can add the following code: ``` //Set novel link <strong></strong></strong> //Set to automatically scroll 100px every 1 second var interval = setInterval(function() { //Get the novel's page's browser element <strong></strong> //Get the novel's page's SSS style <strong></strong></strong><strong></strong> //If the novel's page is set to display: flex, use the flexbox layout. if (novel SSS === display: flex){ //Get the title of the novel's page. var titleHeight = $( #title-container )height(); var titleHeightDelta = 100; //Get the height of the text in the title drop-down box var titleTextHeight = $( #title-container)height(); //calculate the distance of automatic scrolling per second var titleHeightDeltaSizing = Mathfloor(titleHeightDelta / 100); //Create a new flexbox element and set the parent element to display: flex and set flex-direction to row and flex-wrap to wrap to make the title in the drop-down box self-adapting to the height. var titleFlex = $(<div class='title-flex' style='display: flex; flex-direction: row; flex-wrap: wrap; height: + titleHeightDeltaSizing + px;'>) children (h2) children (p)(Please wait for the novel to be automatically read); //Set title flex as parent element var div = $( #title-container )append(titleFlex); //update the title's drop-down box every second titleHTML = titleFlexhtml(); } else { //If the novel's page is set to display: none, use the dom operation to get the novel's page's browser element. if (novel SSS === display: none){ var div = $( <div> ); divcss(display block); //Get the title of the novel's page. var titleHTML = divchildren(h2)html(); //Set the title's drop-down box's element as the parent element var div = $( #title-container )append(titleHTML); } } //Set the tags in the novel page to gray to make the page easier to read divcss(color gray); } 1000); ``` This code would automatically scroll once every second and automatically scroll to the title drop-down box on the novel page. In this example, we used the flexbox layout and set the parent element to display: flex to make the title adapt to the height. We also added a text to the title drop-down box so that we can know the title of the novel when we read it. Before adding the ability to automatically read novels, you also need to add a link to the novel in the page. You can use a text box to do this for example: ``` &lt;input type = text id = novel Link nameplate = novel link/&gt; ``` Next, you can use the `val ()` method of jquery to replace the novel link with the value in the text box so that the server can receive the novel link correctly: ``` //Get the value of the text box varNovelLink =$(#NovelLink) val (); ``` Finally, you can pass the novel link to the server as an argument to retrieve the novel so that you can automatically scroll to the next chapter when reading the novel.

What is the effect and function of 37?

The main effects of sanqi included stopping bleeding, dispersing blood stasis, reducing swelling, and relieving pain. It can be used to treat various bleeding diseases, such as hemoptysis, hematemesis, epistaxia, hematemesis, and so on. It has an obvious hemostatic effect. In addition, sanqi could also promote blood circulation, improve blood flow, prevent the formation of blood clots, and reduce the occurrence of blood vessel diseases. It also had anti-inflammatory and pain-relieving effects, and could improve the symptoms of inflammation diseases such as rheumatism. Ginseng could also regulate blood fat metabolism, reduce the accumulation of blood fat, and prevent the occurrence of cardiovascular diseases. In addition, pseudo-ginseng could also enhance immunity, resist aging, and have a certain regulating effect on the nervous system. In short, the panax pseudoginseng was a multi-functional Chinese medicine with a wide range of applications.

1 answer
2024-12-23 07:26

How to add auto captions to stories?

You can use some specialized software or apps that offer auto-captioning features. Just search for them in your app store and follow the instructions.

2 answers
2024-10-02 19:01

How to add a sound effect to a novel?

One way to incorporate sound effects in a novel is to use onomatopoeia. Words like 'crash', 'bang', or 'hiss' can give the reader a sense of the sounds. Also, you could set the scene with details that imply sounds, like 'The silent forest was suddenly disrupted by the sharp cry of a bird.'

2 answers
2024-10-16 12:23

What is the effect and function of waxberry?

Bayberry has many effects and effects. First of all, waxberry could help digestion and increase appetite. It was rich in organic acid and vitamins C, which could increase the acid in the stomach, promote digestion of food, and increase appetite. Secondly, waxberry had the effect of restraining inflammation and stopping diarrhea, which could alleviate diarrhea, diarrhea, and other symptoms. In addition, waxberry also had the effect of beauty and beauty. It contained fiber and cyanidins, which could stimulate the digestive system, promote the secretion of harmful substances in the body, speed up metabolism, and help with beauty and beauty. Bayberry also had anti-cancer and anti-cancer effects. It contained vitamins C and B, which had positive effects on cancer and anti-cancer. In addition, waxberries could also dispel summer heat and produce saliva, prevent heatstroke, remove sand and relieve polythirst, stimulate appetite and produce saliva, help digestion and relieve summer heat, and help lose weight. In general, waxberry had many effects and effects such as aiding digestion, relieving diarrhea, maintaining beauty, preventing cancer, dispelling summer heat, and promoting salivation.

1 answer
2025-01-13 05:44

What is the effect and function of lettuce?

The effects and functions of lettuce included dredging, relieving stagnation, replenishing nutrients, diuretics, strengthening bones, clearing heat and detoxification, promoting digestion, enhancing immunity, relaxing bowels, and so on. Asparagus lettuce was rich in potassium, which was beneficial to the balance of water and nutrients in the body, and promoted urine discharge and milk secretion. It was beneficial to patients with high blood pressure, edema, and heart disease. Asparagus lettuce also contained a large amount of plant fiber, which could promote the wriggling of the intestinal wall, dredge the digestive tract, help with defecation, and have a certain relieving effect on constipation. In addition, lettuce also contained a variety of vitamins and minerals, which had the effect of regulating nervous system function and was beneficial to patients with iron deficiency leukemia. It should be noted that lettuce is not suitable for people with eye diseases and weak spleen and stomach. At the same time, it should not be eaten together with Asari. The method of eating it could be cold, stir-fried, etc.

1 answer
2024-12-26 19:24

What is the effect and function of Bamboo No. 37?

The effects of the bamboo ginseng included cough, phlegm, blood stasis, and blood circulation. it can be use for treating cough with excessive phlegm, hematemesis due to overwork, traumatic injury, carbuncle, and bleeding due to trauma. In addition, the bamboo root also had anti-inflammatory effects, which could suppress the formation of inflammation and inflammation. However, the specific information about the other effects and effects of the bamboo ginseng was still unclear.

1 answer
2024-12-23 08:16

The effect and function of the duck

Water ducks had many functions and effects. First of all, duck soup could reduce swelling and had a good effect on all kinds of edema symptoms, especially during pregnancy. In addition, duck soup could also nourish yin and stomach. It was rich in minerals, which could supplement nutrition, reduce swelling, nourish blood, nourish the stomach, and produce saliva. It could alleviate and improve symptoms such as weakness after illness. In addition, duck soup was easy to digest, had moderate fat content, and tasted delicious, which could increase appetite. Lastly, the duck soup had the characteristics of clearing heat and cooling blood. It was cool and sweet, and could clear heat and reduce internal heat. In general, ducks had the effects of reducing swelling, nourishing yin and nourishing the stomach, easy digestion, clearing heat and cooling blood.

1 answer
2025-01-11 13:18

The main effect and function of No. 37

The main effects of panax ginseng included nourishing blood, promoting blood circulation, removing blood stasis, treating high blood fat, treating gastric bleeding, treating heartache, treating stubborn headache, and so on. The ginseng was known as a " natural blood tonic." It was rich in various blood-replenishing ingredients, which could promote the production of red blood cells, increase the content of hemoglobin, and help alleviate symptoms such as anesthesia and weakness. At the same time, panax pseudoginseng had the effect of promoting blood circulation and dissipating blood stasis. It could also alleviate the pain caused by blood stasis. In addition, panax pseudoginseng could also increase the blood flow of the coronaries, lower the blood pressure of the arteries, and reduce the oxygen consumption of the heart muscle. It was effective for patients with coronary-heart disease, high blood pressure, and cerebral artery stiffness accompanied by increased blood fat and high blood fat. It could also be used to treat stomach bleeding, heartache, and stubborn headaches. In general, the panax pseudoginseng had many effects and effects such as nourishing blood, promoting blood circulation, reducing blood fat, stopping bleeding, and so on.

1 answer
2025-01-05 22:30

How do I set the auto-browsing function when I'm reading a novel?

Thank you for choosing to be a fan of online literature. You can achieve automatic browsing in the following ways: 1. Use browser add-ons: You can install some browser add-ons on your browser, such as the "Automatic Browsing Plug-in" or "Automatic Browser for Fictions". These add-ons can help you browse your favorite novels automatically. 2. Use reading software: You can use some reading software such as "novel reader" or "e-book reader". These software usually provide automatic browsing function. You only need to set the folder path and reading progress of the novel in the software. 3. Use novel recommendation websites: You can use some novel recommendation websites such as Qidian Chinese Network, Xiaoxiang Academy, etc. These websites usually provide automatic browsing functions. You only need to register an account and log in to the website to select the "Automatic Browsing" option. I hope the above information will be helpful to you. If you have any other questions, feel free to ask me.

1 answer
2024-07-21 22:52

How to use the effect and function of bamboo grass

Bamboo Grass had the effects of clearing heat and detoxification, diuretics, swelling reduction, and bleeding control. it can be use to treat sores, furuncle, carbuncle, swelling and pain of that throat, heat diarrhea, turbid white, dysuria, and bleeding due to trauma. Bamboo grass can be taken internally or externally. When taking it, you can drink 10-20 grams of bamboo grass decoction each time, and 30-60 grams of fresh bamboo grass. For external use, the bamboo grass could be mashed and applied to the affected area, or it could be ground into powder and sprinkled on the affected area. Please note that you should be careful when using bamboo grass. If necessary, it is recommended to consult a professional doctor or pharmacist.

1 answer
2024-12-24 17:46
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