Log In · Register

 
Another question.., Javascript this time
GunsNRachel
post May 8 2008, 03:16 PM
Post #1


Senior Member
****

Group: Member
Posts: 292
Joined: Jul 2007
Member No: 545,047



CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>Take Me Away Layouts - Version 1.0</title>

<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>

<style type="text/css">

td, tr
{
color: white;
font-family: arial;
font-size: 12px;
line-height: 13px;
}



body {
background:Url("http://i30.tinypic.com/21zjhy.png");
background-repeat: repeat;
margin: 0px 0;
font-family: trebuchet ms, sans serif;
font-size: 12px;
color: #fff;
text-align: justify;
line-height: 11px;
width: 1024px;
}

h1 {
font-color: #D4E9CA;
font-size: 16px;
line-height: 16px;
font-weight: normal;
background-color: 363636;
letter-spacing:0px;
font-family: arial;
text-transform: none;
text-align: center;
text-transform: none;
}

#content {
position:absolute;
top: 290px;
left:;
text-align: center;
float: left;
width: 1024px;
background-color:;
padding: 5px;
}

</style></head>

<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

<div id="content">
<h1>Blends and Other Photoshop Things</h1><p>
<a href="http://i27.tinypic.com/mv6qkg.png" rel="lightbox" title="my caption"><img src="http://i29.tinypic.com/20icqc2.png"></a>
</p>
</div>

</body>
</html>


This is my code. I want to have a preview picture, then when you click it have the lightbox thing show up. The only problem is that when I click on the preview image it brings up a new window. That's not what I want _unsure.gif=( . What do I do to fix this?

To see what's going on.. http://takemeawaylayouts.bravehost.com/Index.html
 
 
Start new topic
Replies
Melissa
post May 8 2008, 03:53 PM
Post #2


;)
******

Group: Duplicate
Posts: 2,374
Joined: Feb 2004
Member No: 3,760



CODE
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>


Make sure you're linking it correctly. I'm not sure if that's the problem, since I'm not sure how bravehost works, but just double check that.
 

Posts in this topic
GunsNRachel   Another question..   May 8 2008, 03:16 PM
GunsNRachel   yea haha. I don't know what to do after I down...   May 8 2008, 03:24 PM
GunsNRachel   ohh. er, what is ftp?   May 8 2008, 03:31 PM
GunsNRachel   ahh thanks. bravenet has an "ftp manager...   May 8 2008, 03:36 PM
GunsNRachel   thanks =) lovely. I'm trying to upload it and...   May 8 2008, 03:39 PM
GunsNRachel   oh wait! i got it. i uploaded everything and i...   May 8 2008, 03:42 PM
GunsNRachel   woah. what the heck is that? haha. my code doesn...   May 8 2008, 03:49 PM
heartquasm   CODE<script type="text/javascript" src...   May 8 2008, 03:53 PM
GunsNRachel   eh that's not the problem either. am i suppose...   May 8 2008, 03:59 PM
heartquasm   you can try moving the stylesheet to the header, i...   May 8 2008, 04:06 PM
GunsNRachel   that didn't do it either. I'm going to pul...   May 8 2008, 04:09 PM
heartquasm   Just to test if it's the referencing within th...   May 8 2008, 04:22 PM
GunsNRachel   where do i put that at? i feel so dumb. sorry guy...   May 8 2008, 04:26 PM
GunsNRachel   that's the same thing they have on their site....   May 8 2008, 05:32 PM
GunsNRachel   i put the links to where i uploaded the stuff for ...   May 8 2008, 05:41 PM
GunsNRachel   I'm pretty sure I'm going to lose my mind...   May 8 2008, 06:26 PM
SkyliteX   okay so looking at your code your going to need to...   May 8 2008, 06:33 PM
GunsNRachel   alright, thanks. after i upload them into this fol...   May 8 2008, 06:41 PM
GunsNRachel   woah, it's all screwed up now.   May 8 2008, 06:51 PM
heartquasm   see, the problem is that i don't know how your...   May 8 2008, 06:59 PM
SkyliteX   okay I recommend starting ALL over because you see...   May 8 2008, 07:00 PM
GunsNRachel   ugh. i restarted everything, uploaded all the fold...   May 8 2008, 07:18 PM
GunsNRachel   it gets screwed up when i use your codes heartquas...   May 8 2008, 07:19 PM
heartquasm   okay one sec. i just registered a bravehost thing...   May 8 2008, 07:28 PM
heartquasm   There.   May 8 2008, 07:35 PM
GunsNRachel   shoot, that means i screwed something up somehow..   May 8 2008, 07:35 PM
heartquasm   that's fine, just redo it with my instructions...   May 8 2008, 07:36 PM
GunsNRachel   you are my hero! thank you so much for the hel...   May 8 2008, 07:41 PM
heartquasm   yay! i'm glad.   May 8 2008, 07:44 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: