[Help] to make some basic changes in a script

Discussion in 'JavaScript' started by cosy, Feb 3, 2009.

  1. #1
    var DOH, thisDOH;
    DOH = document.evaluate("//a[@href='?a=c&cID=1234']", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
    thisDOH = DOH.snapshotItem(0);
    
    if(thisDOH.innerHTML=="section_name") {
    Code (markup):
    this a script for some forums sections
    i have no idea a about .js
    1234 c&cID=1234']"this are forum section ID
    ="section_name" forum section name
    i dont want to have a script for each forum section i change the id and name and the script work for any section but i must have one script for each section

    any way to do this whit one script only ?

    -thx
     
    cosy, Feb 3, 2009 IP