How to create a master page using HTML? [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a website which I want to have a consistent style (a header and a side menu) in every page.
I want to create something similar to a master page for it. I don't want to use frames.
How could I achieve this using HTML, CSS, JavaScript and jQuery?

you can use jQuery Load function to include header or menu html page, for example, to include a common header html file,
<div id="new-header">
<script>
$("#new-header").load("header.html");
</script>
</div>

Related

How to make accordion on clear css without bootstrap and html? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 25 days ago.
Improve this question
I can't build accordion on clear css
I have tried a lot of things, but I still can't do it
You can't.
In fact you cant make pretty much anything without HTML (As for Bootstrap is 'just' a wrapper for HTML, CSS and JS.). HTML says where what element is, aka. places the content. CSS defines how it looks and behaves (for the later, you also may need JavaScript).
An accordion in fact needs all three (See this question/answer.)

How to make page load animation like in Youtube [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 months ago.
Improve this question
How can I make the page load elements before the content is fully loaded? Is there a name for this animation style? Youtube, Binance and many other sites use this kind of content loading, but all the tutorials I could find are related to the usual loading spinners
If you're using Reactjs then you can use the skeleton-loading package from here
If you want to make it with only HTML, CSS and javascript, then you can learn to make it with this video tutorial

Change Text and Image On Static Website Dynamically [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I made a static website and its online now. I want to change only some text and image Dynamically, So that I dont have to change the code for change text or image. Please suggest me a simple way.
For a static website, I think it is not possible unless you have set up some administrator stuff or you created that website using frameworks such as Wordpress or WIX.

Scroll not working in iphone using iframe. Is there any way to dynamically load htmls into a another html without using iframe [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am adding some html's dynamically using an iframe src. I have designed these htmls in responsivve mode. But i am getting the problem regarding the scroll using iframe in Iphone. Is ther any other way to dynamicaly load html pages so that it can be useful to my requirement.
You're better off fixing the scrolling via JavaScript. There are a bunch of tutorials explaining how. Here's a recent one: http://davidwalsh.name/scroll-iframes-ios
Have you had a look at jquery's .load();?

What slideshow script is 'tumblr.com' using? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
The url is like below.
http://www.tumblr.com/
On the main page, you can see 3 images keep rotating, which I first thought was a swf, actually is not. They are the images each in <li> tag.
Is there any script out there that can do this? If then, what is it?
Not sure about the Tumblr but you can use jQuery Cycle plugin to create a lot of effects if you want.
In the source they import the file prototype_and_effects.js so they are most likely using the Prototype Framework (a popular alternative to jQuery) and script.aculo.us for the rotating banner effect, which is also included in that file.
Check out their effects demo page for examples and documentation.

Categories

Resources