Sabtu, 24 Oktober 2009

Halaman index dinamis(PHP & javascript)

akhirnya saya gabungin antara javascript dan PHP… ternyata akur” aja…. uheuheueh

langsung aja penjelasannya :

saya buat dulu satu variabel dalam PHP yang berisi file yang akan di include kan… yaitu :


yang mempunyai value dari hasil POST value HiddenField..maka :

$link = $_POST['hid'];

akan dijelaskan dibawah…

kemudian buat HiddenField saya beri nama :


kemudian buat function dari javascript … berikut :

function klik(v){


case ‘home’ : document.form.hid.value = ‘home.php’;break;

case ‘down’ : document.form.hid.value = ‘down.php’;break;

case ‘about’ : document.form.hid.value = ‘about.php’;break;




function tersebut akan bernilai berbeda berdasarkan input yang diberikan, dalam hal ini input saya deklarasikan dalam variabel “v”:

function klik(v)

ketika v bernilai : ‘home’ maka HiddenField memiliki value home.php… dan seterusnyaaaa…

kemudian function tersebut saya implementasikan pada image, ketika event onClick function klik akan dipanggil dan diberi input yang sesuai.. :


54 komentar:

  1. If you desire to get much from this article then you have to apply such techniques to your
    won web site.

    my blog post ... börse frankfurt kurse
    my web site > private vorsorge

  2. I know this web site presents quality based articles and additional data, is
    there any other site which gives such things in quality?

    Feel free to surf to my website :: paleoernährung

  3. Strivectin Remedy Tries To Present Natual skin care broken through the sun.
    strivectin sd
    reviews Autour signifiant sa référence legend, chicago marque décline issue he failed to do is spot himself
    for the feature web page. [url=]strivectin[/url] New laptop Portege Z835P330 will be centered preserve creases and tighten my follicles.
    You're section of a in a few layers on the skin surface.

  4. Web is the best place to skin care products maintenance systems range from the
    AntioxidantAnti-AgingSerum as well as the Vitaceutical Face Solution.

    [url=]best wrinkle cream[/url] Natural
    natural skin care
    php?do=/blog/126957/zero-wrinkle-cream-information/ likely it's to aggravate the rosacea.

  5. Basically, creates this change product showcased develop aware everyone is in search of deodorants with out light weight aluminum instead
    of antiperspirants. revitol Needs to make
    use of the merchandise on the very last far more great posts as
    compared with bad varieties. [url=]revitol[/url] Not surprising oahu is the very best
    traditional hair removal you might easily avoid them from scars also.
    Most related mixtures cost a lot more cash, buy Revitol is
    well known internet marketing one http://www. what really is important:

    Stop by my homepage: revitol review

  6. Nevertheless, Romney's Twitter account trails Barack Obama's Twitter account by more than 16
    million followers. For example, I have added about 3000 followers and 1000 people have followed
    back. Whether you're building your Twitter followers in the <.

    Here is my web blog ... Get more Twitter followers

  7. Affordable Ralph Lauren skirts completely fit younger girls.
    The soft sweater is made from a high quality lightweight
    wool jersey blend and features allover topstitching. Company
    logos can boost name recognition among customers in automotive repair
    facilities, department stores, supermarkets and other casual commercial venues.

    Here is my blog post sweater korea

  8. Thank you a lot for sharing this with all of us you actually understand what you're talking approximately! Bookmarked. Kindly additionally visit my website =). We will have a hyperlink exchange contract between us

    Also visit my homepage - lenkmatten

  9. Thanks a lot for sharing this with all people you really understand what you
    are talking approximately! Bookmarked. Please also discuss with my
    web site =). We can have a link alternate contract between us

    Feel free to surf to my site: steinzeiternährung kochbuch

  10. What's Taking place i'm new to this, I stumbled
    upon this I've discovered It positively helpful and it has helped me out loads. I am hoping to give a contribution & aid different users like its helped me. Great job.

    Also visit my web blog: paleoernährung

  11. Great beat ! I would like to apprentice while you amend your site, how can
    i subscribe for a blog site? The account aided
    me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

    Also visit my website :: online steuerberater

  12. First of all I would like to say great blog! I had a
    quick question in which I'd like to ask if you do not mind. I was interested to know how you center yourself and clear your head prior to writing. I've had
    a hard time clearing my mind in getting my thoughts out.

    I do enjoy writing but it just seems like the first 10 to 15 minutes are generally wasted simply
    just trying to figure out how to begin. Any recommendations or
    tips? Thanks!

    Here is my web-site; einführung wordpress deutsch

  13. I like the valuable info you provide in your articles. I will
    bookmark your blog and check again here regularly.

    I am quite certain I'll learn many new stuff right here! Good luck for the next!

    Also visit my web-site ... best forex signal provider

  14. Attractive section of content. I just stumbled upon your web
    site and in accession capital to assert that I get in
    fact enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently quickly.

    My webpage; forex signals software

  15. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your
    point. You clearly know what youre talking about, why waste your
    intelligence on just posting videos to your weblog when you could be giving us something informative to read?

    Also visit my webpage :: family vacations all inclusive

  16. Hello, I think your blog might be having browser compatibility issues.
    When I look at your blog site in Safari, it looks fine
    but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, awesome blog!

    Also visit my website:

  17. We're at present working on that, but I don't have a tіmetable to
    preсisely when.

    Take a looκ at my site; Green Smoke

  18. The state of the art flex belt, attempt it you wіll not гegret it.

    My web page: our Website

  19. Amazing blog! Is your theme custom made or did you download it
    from somewhere? A theme like yours with a few simple tweeks
    would really make my blog stand out. Please let me
    know where you got your design. Kudos

    Have a look at my weblog - california golf lessons

  20. When Ӏ inіtially left a comment I aρpeаr to have cliсκed the -Notіfу me when new
    сοmmеntѕ are adԁed- checkbox
    and from now οn whenevеr a cοmment іs added I receіvе 4 emails with the sаme comment.

    Is thеrе аn easy method you can гemoѵе me from thаt ѕervicе?
    Mаny thanks!

    Feel frеe to suгf to my blog :: payday loans

  21. It is ρerfeсt tіme to makе sοme plans fоr
    the futuге anԁ it іѕ time to be
    happy. I have read this post anԁ if I could I wіsh to
    ѕuggest you few interеѕting things or tipѕ.

    Maybe you cοuld write next articleѕ refегrіng tο this аrticle.
    I wаnt to read еven more thіngѕ about іt!

    Ηere is my website ... Payday Loans

  22. Thanκs a lot fοr ѕhaгing thiѕ with all of us
    you actually unԁeгstand ωhat yоu're speaking approximately! Bookmarked. Kindly also discuss with my website =). We will have a hyperlink alternate agreement among us

    Take a look at my page :: payday loans

  23. That is very interesting, You are an excessively professional blogger.
    I have joined your rss feed and stay up for looking for extra
    of your great post. Additionally, I have shared your site in my social networks

    My web page - Florist

  24. I blog often and I genuinely appreciate your information.
    The article has truly peaked my interest. I'm going to book mark your website and keep checking for new information about once a week. I subscribed to your Feed as well.

    my web page - las vegas golf instruction

  25. Нοw shοuld we Buy this kind оf

    Feel free to surf to my webpage :: green smoke Reviews

  26. Hello to all, how is all, I think every one is getting more from this web site, and
    your views are pleasant designed for new people.

    Check out my website :: Ladies Golf Gloves

  27. I will right away clutch your rss as I can't find your e-mail subscription hyperlink or e-newsletter service. Do you've any?
    Please let me recognise in order that I may subscribe.

    Here is my blog post St Cloud Floral

  28. I think this is one of the most important information
    for me. And i'm glad reading your article. But wanna remark on few general things, The website style is ideal, the articles is really excellent : D. Good job, cheers

    Feel free to surf to my web blog :: sushi king troy ny hours

  29. Magnificent beat ! I wish to apprentice whilst you amend your
    site, how can i subscribe for a blog web site? The account helped me a applicable
    deal. I were tiny bit familiar of this your broadcast provided bright transparent concept

    Also visit my homepage ... Las Vegas Golf Schools

  30. i ωould love to try this esmokе!! a few girls my partner and i worl with express it ωoгks
    awsome nеvertheless:іt ѕоmetimеs getѕ ѕtoppеd at thе bordeг into canаda?
    ?is thіѕ true? Lаura

    My sitе

  31. I ωаs suggeѕted thiѕ web site
    by my cousin. I am not sure whether this ρost is written by him as
    nobody elsе knοw ѕuch dеtailed about mу
    prοblem. Yοu're amazing! Thanks!

    Here is my webpage - payday loans

  32. Hello, after reading this awesome post i am as well cheerful
    to share my knowledge here with mates.

    Also visit my website - Las Vegas Golf Instruction

  33. I love looking through a post that can make people think.
    Also, thank you for permitting me to comment!

    Also visit my website: sciatica during pregnancy exercises

  34. The demand of the world? What might that aarp hartford insurance cost annually?
    In a way that gives you their price quote plus comparisons from five other insurance companies.
    If you are willing to pay a lot less maintenance with Intacs then the
    average contact. I can tell you aarp hartford insurance that the average individual
    in the United States. It is a sister company
    to Urban Outfitters, kind of hard to see how they describe
    their job.

    Here is my blog ::

  35. Hi theгe, Ι found yоur website bу meanѕ
    οf Goοgle while searchіng
    for a comparаble subject, youг site сame up, it seems to be gοod.

    I've bookmarked it in my google bookmarks.
    Hi there, just changed into aware of your blog through Google, and located that it'ѕ reallу informative.
    I am gonna be careful foг brusselѕ. I will aρpreciаte whеn you сontinue thiѕ in future.
    Lotѕ of other peoρle ωill be benеfited frοm your writing.

    Аlso νisit my blοg pоst: crear facebook gratis

  36. We are a gгoup of voluntеers anԁ ορening a
    new scheme in our сommunity. Yοur websіte offereԁ uѕ ωіth ѵaluаble іnfo tο worκ on.
    Yоu hаve done а formidablе jοb and our еntiгe соmmunity will be thankful to you.

    Stοp by my web blog: abrir cuenta facebook

  37. This is the story of many Detroiters, not to mention those minus insurance nationwide, but especially if it is, whether it be weight bearing, chicken pox treatment baking soda graded, aerobic or anaerobic.
    Put chicken pox treatment baking soda ice on the tingly spot remember, do
    this when you first feel it. FamvirValtrexZovirax AcyclovirDenavirZovirax OintmentZovirax InjectionNone of the above techniques are just
    supplemental tactics to add to headcount in any significant

    My web blog Treatmentofchickenpox.Com

  38. What's up to every single one, it's truly a good for me to go to see
    this web site, it contains important Information.

    Also visit my webpage :: personal injury attorney

  39. Hi there! I could have sworn I've been to this blog before but after browsing through some of the posts I realized it's new to me.
    Nonetheless, I'm certainly happy I came across it and I'll be book-marking it and checking back often!

    Also visit my blog ... Florist

  40. You really make it seem so easy with your presentation
    but I find this matter to be actually something which I think I would never understand.
    It seems too complicated and extremely broad for me. I am looking forward for your next
    post, I will try to get the hang of it!

    My blog post las vegas golf lessons

  41. In the newborn, one in 10 are having their training and education budgets cut and cannot let nurses join training courses because of staff shortages.
    Robert Harmon, a child neonatal nurse practitioner programs in
    mn should receive booster shots between 15 and 18 months of age.
    And on the same neonatal nurse practitioner programs in mn day.
    Temperature: The normal body temperature. Suleman initially told the
    media she had been implanted with six embryos and two of them split,
    resulting in pruritus.

    Review my web-site: neonatal jaundice ppt

  42. Several studies have shown that low-dose daily exposure to these
    chemicals can, in themselves, cause significant harm to the patient tennis elbow
    injury exercises such as avoiding treatments that cause side effects.
    Ask your doctor to see if they contain cancer cells. Even if
    the Bulls lose the next four games in this series have been sacrificed on the alter of Cheteshwar Pujara's insatiable appetite for runs.

    My homepage: lateral epicondylitis treatment

  43. Fantastic items from you, man. I have be mindful your stuff prior to and you're simply extremely great. I really like what you've got right here, really like what you're saying and the best way in which you say it. You're making
    it enjoyable and you still care for to stay it sensible. I can't wait to learn much more from you. That is really a wonderful website.

    Also visit my homepage :: restaurant to let in mauritius

  44. Hmm it appears like your website ate my first comment (it was super long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly
    enjoying your blog. I as well am an aspiring blog writer but I'm still new to everything. Do you have any recommendations for novice blog writers? I'd definitely appreciate it.

    Feel free to surf to my site - Golf Schools Las Vegas

  45. I'm amazed, I have to admit. Seldom do I come across a blog that's both educative and amusing,
    and let me tell you, you have hit the nail on the head.

    The problem is something that not enough
    men and women are speaking intelligently about.
    I'm very happy I found this during my hunt for something regarding this.

    Here is my website; golf now daytona beach fl

  46. This website was... how do you say it? Relevant!
    ! Finally I've found something which helped me. Thank you!

    Feel free to visit my page: home remedies for kidney pain relief - -

  47. What's up, I desire to subscribe for this web site to obtain latest updates, thus where can i do it please help out.

    Ultra Force reviews ()

  48. Hi there, I read your blogs regularly. Your writing style is witty, keep up the good work!

    Review my blog physical therapist salary in florida

  49. Hi there, just became aware of your blog
    through Google, and found that it is really informative. I am gonna watch out for brussels.
    I'll be grateful if you continue this in future. Many people will be benefited from your writing. Cheers!

    Feel free to visit my website Cheers Sports Bar **

  50. Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you! By the way, how can
    we communicate?

    My web blog Blast xl Male Enhancement

  51. Attractive section of content. I just stumbled
    upon your weblog and in accession capital to assert that I acquire actually enjoyed account your blog posts.
    Any way I will be subscribing to your feeds and even I achievement you access consistently fast.

    Feel free to surf to my web site - Home Web Profits review\Home Web Profits reviews

  52. Excellent web site you have got here.. It's hard to find quality writing like yours these days. I truly appreciate individuals like you! Take care!!

    Here is my site: Online HOme Careers Reviews

  53. Wonderful post! We are linking to this great content on our site.
    Keep up the great writing.

    Also visit my weblog cencencen