HTML Pages and Java/JQuery
3 posters
Page 1 of 1
HTML Pages and Java/JQuery
A quick question about HTLM pages. Does Java or JQuery not apply to the HTML pages? I can't get any of my codes to work, all the html and css works, but not the deciding java or jquery.
Any ideas?
Any ideas?
Re: HTML Pages and Java/JQuery
Add after <head> tag:
- Code:
<script type="text/javascript">
YOUR SCRIPT HERE
</script>
Guest- Guest
Re: HTML Pages and Java/JQuery
hmm still not working .... this is my code in the html page .... i know it probably looks very unclean and all over the place, but i'm new to this
- Code:
<html>
<head>
<script type="text/javascript">
$("#pageflip").hover(function() { //On hover...
$("#pageflip img , .msg_block").stop()
.animate({ //Animate and expand the image and the msg_block (Width + height)
width: '300px',
height: '300px'
}, 500);
} , function() {
$("#pageflip img").stop() //On hover out, go back to original size 50x50
.animate({
width: '50px',
height: '50px'
}, 220);
$(".msg_block").stop() //On hover out, go back to original size 50x50
.animate({
width: '50px',
height: '50px'
}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
});
</script>
</head>
<style>
body {
background-repeat: no-repeat;
background-position: top center;
background-color: #202020;
}
</style>
<body>
<body background ="http://i40.servimg.com/u/f40/14/90/77/10/naviga11.jpg" bgproperties="fixed">
<table>
<tr>
<div id="pageflip">
<a href="#">
<img src="http://i216.photobucket.com/albums/cc174/ToxiCure/Corner.png" alt="" />
<span class="msg_block">Subscribe via RSS</span>
</a>
</div>
<style>
#pageflip {
position: relative;
}
#pageflip img {
width: 50px; height: 50px;
z-index: 99;
position: absolute;
right: 0; top: 0;
-ms-interpolation-mode: bicubic;
}
#pageflip .msg_block {
width: 50px; height: 50px;
position: absolute;
z-index: 50;
right: 0; top: 0;
background: url(http://i216.photobucket.com/albums/cc174/ToxiCure/InfoCorner.png) no-repeat right top;
text-indent: -9999px;
}
</style>
</tr>
</table>
</body>
</html>
Re: HTML Pages and Java/JQuery
Replace with:
- Code:
<html>
<head>
<script type="text/javascript">
$("#pageflip").hover(function() { //On hover...
$("#pageflip img , .msg_block").stop()
.animate({ //Animate and expand the image and the msg_block (Width + height)
width: '300px',
height: '300px'
}, 500);
} , function() {
$("#pageflip img").stop() //On hover out, go back to original size 50x50
.animate({
width: '50px',
height: '50px'
}, 220);
$(".msg_block").stop() //On hover out, go back to original size 50x50
.animate({
width: '50px',
height: '50px'
}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
});
</script>
<style>
body {
background-repeat: no-repeat;
background-position: top center;
background-color: #202020;
}
#pageflip {
position: relative;
}
#pageflip img {
width: 50px; height: 50px;
z-index: 99;
position: absolute;
right: 0; top: 0;
-ms-interpolation-mode: bicubic;
}
#pageflip .msg_block {
width: 50px; height: 50px;
position: absolute;
z-index: 50;
right: 0; top: 0;
background: url(http://i216.photobucket.com/albums/cc174/ToxiCure/InfoCorner.png) no-repeat right top;
text-indent: -9999px;
}
</style>
</head>
<body background="http://i40.servimg.com/u/f40/14/90/77/10/naviga11.jpg" bgproperties="fixed">
<table>
<tr>
<div id="pageflip">
<a href="#">
<img src="http://i216.photobucket.com/albums/cc174/ToxiCure/Corner.png" alt="" />
<span class="msg_block">Subscribe via RSS</span>
</a>
</div>
</tr>
</table>
</body>
</html>
Guest- Guest
Re: HTML Pages and Java/JQuery
still no movement on the right top corner
http://m3rcs.forummotion.com/h1-loading-page#
i should probably just stick to the basic forumotion stuff cause this is way over my head to make it working
http://m3rcs.forummotion.com/h1-loading-page#
i should probably just stick to the basic forumotion stuff cause this is way over my head to make it working
Re: HTML Pages and Java/JQuery
You're not including a copy of jQuery into your page. Use something like this:
- Code:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
Saxaca- Forumember
- Posts : 539
Reputation : 26
Language : Markup.
Re: HTML Pages and Java/JQuery
He mean:
Like:
- Code:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js">YOUR JAVASCRIPT HERE</script>
Like:
- Code:
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js">
$("#pageflip").hover(function() { //On hover...
$("#pageflip img , .msg_block").stop()
.animate({ //Animate and expand the image and the msg_block (Width + height)
width: '300px',
height: '300px'
}, 500);
} , function() {
$("#pageflip img").stop() //On hover out, go back to original size 50x50
.animate({
width: '50px',
height: '50px'
}, 220);
$(".msg_block").stop() //On hover out, go back to original size 50x50
.animate({
width: '50px',
height: '50px'
}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
});
</script>
<style>
body {
background-repeat: no-repeat;
background-position: top center;
background-color: #202020;
}
#pageflip {
position: relative;
}
#pageflip img {
width: 50px; height: 50px;
z-index: 99;
position: absolute;
right: 0; top: 0;
-ms-interpolation-mode: bicubic;
}
#pageflip .msg_block {
width: 50px; height: 50px;
position: absolute;
z-index: 50;
right: 0; top: 0;
background: url(http://i216.photobucket.com/albums/cc174/ToxiCure/InfoCorner.png) no-repeat right top;
text-indent: -9999px;
}
</style>
</head>
<body background="http://i40.servimg.com/u/f40/14/90/77/10/naviga11.jpg" bgproperties="fixed">
<table>
<tr>
<div id="pageflip">
<a href="#">
<img src="http://i216.photobucket.com/albums/cc174/ToxiCure/Corner.png" alt="" />
<span class="msg_block">Subscribe via RSS</span>
</a>
</div>
</tr>
</table>
</body>
</html>
Guest- Guest
Re: HTML Pages and Java/JQuery
Hi,
Is this what you are trying to get?
http://someonelikeyou.forumcroatian.com/h2-s
Is this what you are trying to get?
http://someonelikeyou.forumcroatian.com/h2-s
- Code:
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#pageflip").hover(function() { //On hover...
$("#pageflip img , .msg_block").stop()
.animate({ //Animate and expand the image and the msg_block (Width + height)
width: '300px',
height: '300px'
}, 500);
} , function() {
$("#pageflip img").stop() //On hover out, go back to original size 50x50
.animate({
width: '50px',
height: '50px'
}, 220);
$(".msg_block").stop() //On hover out, go back to original size 50x50
.animate({
width: '50px',
height: '50px'
}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
});
});
</script>
</head>
<style>
body {
background-repeat: no-repeat;
background-position: top center;
background-color: #202020;
}
</style>
<body>
<body background ="http://i40.servimg.com/u/f40/14/90/77/10/naviga11.jpg" bgproperties="fixed">
<table>
<tr>
<div id="pageflip">
<a href="#">
<img src="http://i216.photobucket.com/albums/cc174/ToxiCure/Corner.png" alt="" />
<span class="msg_block">Subscribe via RSS</span>
</a>
</div>
<style>
#pageflip {
position: relative;
}
#pageflip img {
width: 50px; height: 50px;
z-index: 99;
position: absolute;
right: 0; top: 0;
-ms-interpolation-mode: bicubic;
}
#pageflip .msg_block {
width: 50px; height: 50px;
position: absolute;
z-index: 50;
right: 0; top: 0;
background: url(http://i216.photobucket.com/albums/cc174/ToxiCure/InfoCorner.png) no-repeat right top;
text-indent: -9999px;
}
</style>
</tr>
</table>
</body>
</html>
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Re: HTML Pages and Java/JQuery
Wow you're my hero that's awesome! That is exactly what i was trying to achieve.
Thank you so much, now i can learn what i did wrong and continue with the rest.
Topic Solved
Thank you so much, now i can learn what i did wrong and continue with the rest.
Topic Solved
Re: HTML Pages and Java/JQuery
You did not link the JS and you forgot the $(document).ready(function(){
Welcome.
Topic solved
Welcome.
Topic solved
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Similar topics
» Help with Java/Jquery
» Java Script in all pages
» Pop-up box with html and jquery
» Why is Jquery not working on HTML Page
» RollOver Nav HTML & JQuery
» Java Script in all pages
» Pop-up box with html and jquery
» Why is Jquery not working on HTML Page
» RollOver Nav HTML & JQuery
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum