Latest Entry: (Post #22) by keego on Dec 19 2007, 04:48 PM. (Line Breaks Removed)
Hey thanks for the helpI got one of the templates.. and yeh fully changed it... seeing how they were so wide lol..Looks good now The stupid lightbox still doesnt work properly though.. you know whats funny.If you click on modelling photo under Gallery it shows it in the div box right.. and then you click on the photo .. the lightbox breaks.. and then if you click on modelling photo again... and cl... read more.
You're either looking for AJAX or PHP's include function. If you don't mind the page reloading, then go with PHP's include function. But if you do, then AJAX is what you want.
thanks for that.. ive tried it out and yeah it works.. now the problem is .. what if the external link had css attached to it.. cause i wanted the gallery page to load onto the div layer, now it loads but the lighbox doesnt work. do i have to attach something or do something to it?
Well we would need to see how you have the pages set up before we know how to fix the problem, so if you can load a demo page to your account or post the code to the gallery page to take a look and see what it looks like.
Just remember although your loading an external page that page needs to have the proper coding, and so make sure your gallery page has this in your header
and of course have this connected to your pics as well
CODE
rel="lightbox"
If you need more help I know lightbox pretty well, and enough ajax and php to fix the problem, but before that just post a demo or the code your working with and we can fix it right up.
Also let us know what method your using since you didn't mention in the post which way you went.
I know the problem here .. the external pages you are loading even though it has CSS styles attached to it dont render all properly when its fetched from outside the parent document.
THe only way I've found out a fix is to have the javascripts and CSS on the parent document then when the ajaxed document is pulled in it should work.
If you need more help I know lightbox pretty well, and enough ajax and php to fix the problem, but before that just post a demo or the code your working with and we can fix it right up.
Also let us know what method your using since you didn't mention in the post which way you went.
var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no) var loadedobjects="" var rootdomain="http://"+window.location.hostname var bustcacheparameter=""
function ajaxpage(url, containerid){ var page_request = false if (window.XMLHttpRequest) // if Mozilla, Safari etc page_request = new XMLHttpRequest() else if (window.ActiveXObject){ // if IE try { page_request = new ActiveXObject("Msxml2.XMLHTTP") } catch (e){ try{ page_request = new ActiveXObject("Microsoft.XMLHTTP") } catch (e){} } } else return false page_request.onreadystatechange=function(){ loadpage(page_request, containerid) } if (bustcachevar) //if bust caching of external page bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime() page_request.open('GET', url+bustcacheparameter, true) page_request.send(null) }
function loadpage(page_request, containerid){ if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)) document.getElementById(containerid).innerHTML=page_request.responseText }
function loadobjs(){ if (!document.getElementById) return for (i=0; i<arguments.length; i++){ var file=arguments[i] var fileref="" if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding if (file.indexOf(".js")!=-1){ //If object is a js file fileref=document.createElement('script') fileref.setAttribute("type","text/javascript"); fileref.setAttribute("src", file); } else if (file.indexOf(".css")!=-1){ //If object is a css file fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", file); } } if (fileref!=""){ document.getElementsByTagName("head").item(0).appendChild(fileref) loadedobjects+=file+" " //Remember this object as being already added to page } } }
I think the background showing is because of a default margin effect on image tags <img> you can try set margins for all images to zero. I think that should fix it.
so try adding this line into your css file.
CODE
img { margin: 0px; }
This should set margins to all image tags to 0 value.
it didnt work. it jst moved my image all the way to the top of the div... is there a specific are where im suppose to paste that code. or it doesnt matter as long as its in my css file?
it shouldnt matter where it is but if there is 2 img styles the bottom one should over write I think. your css file dosent have it though i checked. I know the problem has to be margins because thats the only thing it looks like. you could try
CODE
* { margin 0px; }
it might work. I should really try and copy the page/site over to try out myself
oh I think I see it now. it looks like you have a <p> tag around the image thats whats probably causing the margins.
you could do
CODE
p { margin: 0px; }
edit: Dont do the previous suggestion of * { margin: 0px} its crazy it will apply 0 margins to everything. You probably only want to apply 0 margins to things you want to have zero margins not everything.
Hey thanks for the help I got one of the templates.. and yeh fully changed it... seeing how they were so wide lol.. Looks good now
The stupid lightbox still doesnt work properly though.. you know whats funny.
If you click on modelling photo under Gallery it shows it in the div box right.. and then you click on the photo .. the lightbox breaks.. and then if you click on modelling photo again... and click on the photo. it loads properly.. thats so wierd >.<
I'm using one from here also. If you build your site off any of these layouts your site layout shouldnt break as easy. They are reasonibly plain yet you can still add on it easy enough. Once you start adding alot of content in your code can get messy fast so finding errors to correct can be difficult.
Dont worry too much you do what most people do, just paste a whole lot of code in there. But the proper way is to start from scratch and correct any mistakes before adding more things in.
Heres how i would do it and suggest you do it
1. pick a template you like, download it and load it on your computer 2. change any colors / fonts / margins in the css file (You can always modify later if needed or if you change your mind) 3. add navigation in there and test it out. 4. add your ajax functions and any other javascript and test it out 5. load your lightbox gallery in.
you should check for any errors during each stage/when you add new things in. I hope this helps abit if you dont understand fully dont worry not everyone does. I still get confused my self about what CSS is actually doing. The only way you will pick it up is if you keep learning. I've only started working with CSS myself and javascript in the last 4 months on and off of course. I've done javascript before a few years back but I dont remember lol so that dont count. Any way you get the points keep at it.
As a last resort if you really need to get a move on building your site which is understandable and get a solid layout builted to use instead of building one from scratch I can help. it shouldnt take too long, on the other hand if you want to build it your self and try and learn along the way thats cool too.
yeah i love the layout.. unless there is one like it. though i dont know where to get one from... ^^ and yeah.. my friend told me to do a validation check.. so much crap that i dont understand.. lol
stuff like
Line 142, Column 184: end tag for element "DIV" which is not open.
…onMouseout="dynamichide(event)"></div>')
✉
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
yeah it does break under fire fox if you view the picture from home.htm but if you load it by it self on photo.html it works fine under fire fox. I think its because of the CSS files. There is probably some conflicts between myCSS.css and lightbox.css so I guess one way would be to start going through them and removing any duplicates on the myCSS.css side.
I know its kinda messy lol i've looked through it and didnt even want to touch them but if you wanna keep this layout and want to fix it I guess it has to be done. Atleast you know it works or should work.
by the way it works fine under safari also, just firefox messes up, Are you still going to keep building with this layout? I'm sure you can find a similar already built CSS layout which might event not have any break problems. I found a good site for layouts before but cant seem to find the link anymore.
it works.!!!! AHAHAHHAH YOU ARE SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO COOOOOOOOOOOOL!!!!
lol thanks thanks!! woot woot!! lolz
arrg i was going crazy over that stupid thing... i learnt so much since i joint this forum. haha !!! so SMART!! damnit >.< lolz
Do you mind checking it though? cause i think it breaks. if it does.. is there anyway at all to fix it? or i guess you can't?
EDIT: u know what i notice.. it works on IE with no breaks.. im guessing its still that margin problem. you know how firefox for some reason is not letting me have a scroll bar... so i can scroll down and see the rest of my page.. well yeah >.<
Hi all! I've been searching the internet like crazy but just can't find any answers to
my problem. I want to make it so that my navigation buttons links content to be loaded inside a
smaller layer/apDiv or perhaps something i've yet to discover. I just can't for my life
understand how to do this nor what tools and options to use. I am using Dreamweaver CS3 in design
mode and have no clue how to hard code in html, CSS etc.. Here's a picture of what i want to
do. I really hope someone can help me or perhaps atleast point me in the right direction....
I need to send a piece of information from one php page to another (kind of like a form). The thing
is that I need the page to send a different piece of information based on what link is clicked.
Something like this: CODE <a href="some code">Send Information 1</a>
<a href="some other code">Send Information 2</a> I don't know how to
do this, so does anyone have any ideas? Thanks in advance! /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
i recently posted a question to this forum about the reasons behin a webpage looking difrent inside
of outher browsers. and then i found out that you use code to keep the design in place but the code
you rite reads the browser and loads the page to the browsers specifications. but if like me you
prefer not to code how then can you do this, i am aware that i would have to begin some codeing as
i want to begin my own website but i dont no how i would lern this method of codeing that keeps this
problem of messy web pages in difrent browsers at bay. can annyone help....
Okey, so I saw another topic here regarding how to make a design. I know how to do that, so that is
no problem. But I have always had some problems on how to code a design. I am tired of that I always
need to use some sort of program, drag&drop webhost (like piczo) or use a free design I found
online. I have noticed that people need to "cut" the design in different parts, but I have never
understood what way the do it. So I do not understand anything about this, and really need some
help. I will be happy for all help I get. /smile.gif" style="vertical-align:middle"....
Hi everyone, im looking for a code that will display a users xbox live gamercard. Ive seen one
little widget but that was for the igoogle page ao its not suitable for what i want. Ideally I want
one thats written with HTML or something like that so its easy for me to modify and such. What i
want it to do is t have a URL in the code which the user can then insert their gamertag ID into and
have the widget display their gamercard for all to see. if i ever use this code it will be on a
money making site, hopefully, so something thats free to use even for commercial things ....
For people to join my website (just friends at the mo) it is $10. I'd like to be able to
create a paypal link on my page so that they have the option to pay via that? Thanks, std....
Hi all. In my quest to become a website creator I have a big obstacle.. when it comes to design, eg
making things look good i might as well be blind. Im useless! I can code to a decent standard
in HTML PHP CSS MYSQL and JS but i am useless at making a nice design. So wha im after is advice on
how to learn this, what i fear is a response of "you can *learn* how to design, you either can or
you cant.". Its really important that im able to design a nice looking website because not many
people have a concise set of drawings from which to code the website. Any advice ....
I want to design a map with a link related on each country of the map. If there is somebody who has
already done that, let help me to design it or give me a tutorial to train for it. Thanks to all
for your help.....
I use Proboards Forums, which doesn't allow PHP. I've been looking for a RPG forum game for
Proboards. But sadly, they only come in PHP. So, I was wondering, is it possible to convert that PHP
into HTML? Can Java Script be converted into HTML, too? Some of these codes are in java, as well.
If you don't know, the RPGs have stats, classes, battling, shops, ect. I've seen it on many
forums. I know that boards like InvisionFree abd PHPBB are great for this kind of thing, but I feel
comfortable on Proboards. Plus, those boards confuse me. I know it's sil....
oke well i made my button and i addet the actionscript to give the button an url,see the screenshot
below now for some reason it gives me errors,and i don't know what i did wrong to be
honest,so can some one help me out with this p.s i do use flash cs3 so i dunno maybe its another
way to put an url on ur button with this version cause with flash pro8 and mx i never had a problem
with this....
Every once and a while we get stuck. Sometimes we don't even know where to start. As designers
we are free to be as creative as we can be but creativity sometimes runs low. The real problem is to
question creativity itself. What is it? In my personal opinion you need to feed your creativity with
new ideas to help it grow. Not only is it feeding your creativity, it's also fun to do!
Here's my sources of inspiration: Nature: I know, people say this all the time but its
true! Take a walk in the park or in the woods depending on where you live, take it i....
Hi if someone could get back to me as fast as they can that would be great! i got a couple of
questions what do you use my sql for what does that have to do with forums? and secondally can
someone give me the php code for the forum thanks /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" />....
I am in trouble , in a lot of topics I typed a link lead to another site with the right format
but when I click on the , it change to a blank page , what 's wrong ? If I just put the mouse
over the word I linked , it says at the bottom left of Internet Explorer http://mysite.com/forum
and then I click it , a blank white page showed up. What should I do now. I putted a Link in the
NEWS but it goes to the same problem. Thank you very much. Topic title modified. Topic moved. ....
I have seen this site before.The site is simple.there are a box that you can put a url link then
press enter you can see the code of the page (see everything include meta,comment...),even it is
written in php,asp... If anyone know this site,please let me know(I have format my computer,so I
lost it).thank you. ....
I was cruising through the Astahost Forum this morning and found this really good bit of information
about guidelines for Site Design and thought I'd share it with all the fine folks here at the
Trap. None of these suggestions are "required" for your sites, but they are highly reccomended
suggestions about designing for the web. If you read this forum, read the whole thing, because the
replies add to the original topic post and all are valid points. Enjoy. Astahost Guidelines for
GOOD web design ....
hi everbody, I am creating this website for an online game KHAN which is of course hosted by
Trap17.com. Anyway, it accepts membership since its services includes message board for every member
and message board for groups that members created and of course personal messages. So here is my
problem, since it accepts membership it requires applicants to fill up forms which ask their e-mail
address, I want to know how make an activation code that is an image. Get my point? /smile.gif'
border='0' style='vertical-align:middle' alt='smile.gif' /> it is basically like her....
Hi! Im working on a little HTML project for myself and am teaching myself.. So I would like to
know how to set roll over effects and a short guide on it! What I mean is, I would like to know
the code of making the mouse over on links make the links go red... Or if anyone can give me a way
to do it on frontpage, because I cant find it! Thnx in advance!....
Ive been to numerous sites where people can click on a link and download a video. Maybe its
something very simple but idont know.... If someone could show me how do this using dreamweaver that
would be appreciated... also where would i upload the file too... bc its a video, so would it go in
just the public folder or in picture or what? plz tell me bc ive been wondering about this for a
while, same thing with a music download link, i suppose they are the same thx in advanced jon....
i donr the pages for my site but ow it it time to link them properly how to do it i m doing like
this is that right? http://mysite.trap17.com/index.htm it is ok or wrong? help on this...
/ohmy.gif' border='0' style='vertical-align:middle' alt='ohmy.gif' /> ....
Ok.i have a link to this: http://hostjunkies.trap17.com/forums in an .html iframe.. and it goes up
in there...i want to know how to make an HTML link so this http://hostjunkies.trap17.com/forums
pops up in a new page.....
If anyone likes asp, or makes his websites in asp, just go here: They have this online code
generator tools: Data Command Wizard Form Wizard Response.Write Wizard Meta Tag Generator CODE
http://www.powerasp.com/code_wizards/default.asp They are very cool!....
I am currently looking for affiliates for my site dontmaimyourself.trap17.com and thought this
would be the best place to start. If you are interested please e-mail me or pm or whatever. I
would appreciate it if you would use this button: or by pasting this code: CODE <a
href="http://www.dontmaimyourself.trap17.com"><img
src="http://www.dontmaimyourself.trap17.com/images/button.gif alt="Free Online
Games"></a> /biggrin.gif' border='0' style='vertical-align:middle'
alt='biggrin.gif' /> ....
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.