cickens Posted February 4, 2011 Report Share Posted February 4, 2011 (edited) Ja man ir index.html <html> <head> <title>Nosaukums</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="content"> <p> Kāda funkcija? <p/> </div> </body> </html> Šajā rindiņā: <p> Kāda funkcija? <p/> Kā var izdarīt, lai tekstu ņem no cita faila. Manā gadījumā teksts.html Visam jāiet uz HTML, problēmas nebūtu, ja būtu uz PHP. Edited February 4, 2011 by cickens Quote Link to comment Share on other sites More sharing options...
indoom Posted February 4, 2011 Report Share Posted February 4, 2011 <iframe src="cits.html" width="100%" height="300"></iframe> Quote Link to comment Share on other sites More sharing options...
cickens Posted February 4, 2011 Author Report Share Posted February 4, 2011 Šis ir vienīgais veids? Baigi izbojā lapu, ja neko nedara caur css. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 4, 2011 Report Share Posted February 4, 2011 Parasti to dara izmantojot PHP... Ja PHP ir pieejams, tad... include 'fails.html'; Quote Link to comment Share on other sites More sharing options...
cickens Posted February 4, 2011 Author Report Share Posted February 4, 2011 Nav pieejams, bet itkā skolotājs teica par kaut kādām tabulām un href... Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 4, 2011 Report Share Posted February 4, 2011 Kā ar JavaScript? =] Quote Link to comment Share on other sites More sharing options...
labaiss Posted February 4, 2011 Report Share Posted February 4, 2011 (edited) Nav pieejams, bet itkā skolotājs teica par kaut kādām tabulām un href... nevaru pat iztēloties kā ar tabulām to varētu izdarīt. Ja noskaidro, lūdzu, uzraksti te. Un kas tur slikts, ka CSS jāizmanto - bez tā manuprāt mūsdienu WWW nemaz patāvēt nevar - nosacīti :D jo izmantot css un iframe būs vieglāk&drošāk nekā javascript un tabulu(teorētiski tabulai jau arī vajadzēs CSS) + protms ja nav pieejams PHP Edited February 4, 2011 by labaiss Quote Link to comment Share on other sites More sharing options...
labaiss Posted February 4, 2011 Report Share Posted February 4, 2011 rekur kaut kādas client side includes: http://www.massimocorner.com/libraries/csi/ http://johannburkard.de/blog/programming/javascript/inc-a-super-tiny-client-side-include-javascript-jquery-plugin.html + bet tas nav nopietni, jo SEO.....,...,.. Quote Link to comment Share on other sites More sharing options...
briedis Posted February 4, 2011 Report Share Posted February 4, 2011 izmanto ajax. Google: jquery ajax get Quote Link to comment Share on other sites More sharing options...
Kemito Posted February 4, 2011 Report Share Posted February 4, 2011 Kapēc mūždien viss jāsarežģī, vai tad tik traki ir, ka NAV pieejams PHP ? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 5, 2011 Report Share Posted February 5, 2011 Jā. Ir gan traki. Tev paliek divas mark-up valodas un klienta puses valoda. =D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.